Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 463 Bytes

File metadata and controls

22 lines (19 loc) · 463 Bytes

Custom Props

import {useCurrentSidebarCategory} from '@docusaurus/theme-common';

export const DocPropsList = ({items}) => (
  <table>
    <tr>
      <th>Doc Page</th>
      <th>Custom Props</th>
    </tr>
    {items.map((item, index) => (
      <tr key={index}>
        <td>{item.label}</td>
        <td>{JSON.stringify(item.customProps)}</td>
      </tr>
    ))}
  </table>
);

<DocPropsList items={useCurrentSidebarCategory().items}/>