Registering Shadcn code components as subsets with a family of components

What are you trying to do? (please be as specific as possible and include relevant screenshots, code snippets, and reproduction steps)

Hi! We would like to register code component families as the Plasmic team has done in the Checkbox example below. How do we get this done?

Screenshot_2024-10-02_at_8.47.58_AM

What have you tried so far? (please link relevant docs and other forum posts)

We’ve registered quite a bit of Shadcn components and are hoping to register some more.

ps: We should be interested in finding partners in the Plasmic community to work together on registering, improving and maintaining Shadcn components.

Relevant links:

Hi, you can use parentComponentName for that. Please refer to Code components API reference | Learn Plasmic and plasmic/plasmicpkgs/antd/src/registerCheckbox.tsx at 1d1bbdc1ca053260ea3ee4451e753f9d2df2597c · plasmicapp/plasmic · GitHub for more details.

1 Like

I’m always very grateful for your assistance @fmota!

We appreciate you! :blush: