digdir / designsystemet

Designsystemet
https://designsystemet.no
MIT License
68 stars 34 forks source link

Update docs about RSC and using dot notation #2087

Closed mimarz closed 2 days ago

mimarz commented 1 month ago

Using React Server Components and "dot notation" (Accordion.Item) does not work and causes a crash.

We export all components in full name, so in this use-case our users need to use the full name instead, Accordion.Item -> AccordionItem.

We should add a note about this in our getting started or maybe a new QA section? 🤔

Barsnes commented 2 days ago

This has been added on our "Bruk" page in Storybook. I'll close this since that page is a part of our documentation. We can open another issue about how our documentation should be structured.