-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Unfortunately it's not possible, the props theme components receive are quite "static" and there's no easy way to add more data to those apart forking/enhancing our existing plugins. In the future, React Server Components should give you the flexibility to achieve your needs In |
Beta Was this translation helpful? Give feedback.
Unfortunately it's not possible, the props theme components receive are quite "static" and there's no easy way to add more data to those apart forking/enhancing our existing plugins.
In the future, React Server Components should give you the flexibility to achieve your needs
#9089
In
DocCategoryGeneratedIndexPage
, theDocCard
components receive the same data structure as sidebar items (because this page displays a list of sidebar items at a given level). If you passsidebar_custom_props
as front matter to your docs, thenDocCard
should receive that as props (and you can eventually "automate" that by rewritingimage
tosidebar_custom_props.image
thanks to parseFrontMatter)