githubnext / blocks

A set of files to use as input for Blocks.
https://blocks.githubnext.com
MIT License
337 stars 43 forks source link

support passing parameters to BlockComponent tags in Markdown #65

Open jaked opened 1 year ago

jaked commented 1 year ago

E.g. to control the display of a file, like showing different versions of an install command for npm, yarn, etc.

Hacksore commented 1 year ago

The idea would be something like:

<Block
   ...
   metadata={{
     userDefinedProp: "npm" // now this can be consumed in the react code
   }}

/>