Skip to content

Commit 4d54bfa

Browse files
committed
feat(docs): add data attribute in list of differences
1 parent 8253d1d commit 4d54bfa

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

apps/docs/content/docs/index.mdx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ Built with familiar tools and libraries, it follows consistent styling, structur
2020

2121
## Key differences from shadcn/ui
2222

23-
- <a href='https://www.nativewind.dev' target='_blank' rel='noreferrer' className='font-medium underline underline-offset-4 decoration-fd-muted-foreground/0 hover:decoration-fd-muted-foreground'>Nativewind</a>: React Native Reusables integrates with Nativewind for utility-first styling on native, providing a Tailwind-like experience adapted for React Native.
24-
- <a href='https://rnprimitives.com' target='_blank' rel='noreferrer' className='font-medium underline underline-offset-4 decoration-fd-muted-foreground/0 hover:decoration-fd-muted-foreground'>RN Primitives</a>: A universal port of Radix UI primitives for React Native with an almost identical API, enabling consistent composition on native platforms.
25-
- <span className='font-medium'>Portals</span>: React Native doesn't support DOM portals. Components like modals, dropdowns, and toasts require a `PortalHost`.
26-
- <span className='font-medium'>No cascading styles</span>: Child elements like `Text` can't inherit styles from a parent class. Each element must be styled directly. (We use a small [workaround](/docs/components/text#inheritance-system) for `Text`.)
27-
- <a href='https://docs.swmansion.com/react-native-reanimated' target='_blank' rel='noreferrer' className='font-medium underline underline-offset-4 decoration-fd-muted-foreground/0 hover:decoration-fd-muted-foreground'>Reanimated</a>: Uses `react-native-reanimated` for smooth, native performance.
28-
- <span className='font-medium'>Icons</span>: Uses a wrapper component in combination with a <a href='https://lucide.dev/guide/packages/lucide-react-native' target='_blank' rel='noreferrer' className='underline underline-offset-4 decoration-fd-muted-foreground/0 hover:decoration-fd-muted-foreground'>Lucide icon</a> to avoid wrapping every imported icon individually (e.g. `<Icon as={LeftArrowIcon} />`).
29-
- <span className='font-medium'>Programmatic control</span>: Some components, such as `DropdownMenu`, can't be controlled with `open` or `onOpenChange` props. Instead, you use a `ref` to manage open and close behavior after layout calculation.
23+
- <a href='https://www.nativewind.dev' target='_blank' rel='noreferrer' className='font-medium underline underline-offset-4 decoration-fd-muted-foreground/0 hover:decoration-fd-muted-foreground'>Nativewind:</a> React Native Reusables integrates with Nativewind for utility-first styling on native, providing a Tailwind-like experience adapted for React Native.
24+
- <a href='https://rnprimitives.com' target='_blank' rel='noreferrer' className='font-medium underline underline-offset-4 decoration-fd-muted-foreground/0 hover:decoration-fd-muted-foreground'>RN Primitives:</a> A universal port of Radix UI primitives for React Native with an almost identical API, enabling consistent composition on native platforms.
25+
- <span className='font-medium'>Portals:</span> React Native doesn't support DOM portals. Components like modals, dropdowns, and toasts require a `PortalHost`.
26+
- <span className='font-medium'>No cascading styles:</span> Child elements like `Text` can't inherit styles from a parent class. Each element must be styled directly. (We use a small [workaround](/docs/components/text#inheritance-system) for `Text`.)
27+
- <span className='font-medium'>No data attributes:</span> React Native doesn't support data-* attributes, so variants rely on props or state. On the web, data-* attributes work when using HTML elements.
28+
- <a href='https://docs.swmansion.com/react-native-reanimated' target='_blank' rel='noreferrer' className='font-medium underline underline-offset-4 decoration-fd-muted-foreground/0 hover:decoration-fd-muted-foreground'>Reanimated:</a> Uses `react-native-reanimated` for smooth, native performance.
29+
- <span className='font-medium'>Icons:</span> Uses a wrapper component in combination with a <a href='https://lucide.dev/guide/packages/lucide-react-native' target='_blank' rel='noreferrer' className='underline underline-offset-4 decoration-fd-muted-foreground/0 hover:decoration-fd-muted-foreground'>Lucide icon</a> to avoid wrapping every imported icon individually (e.g. `<Icon as={LeftArrowIcon} />`).
30+
- <span className='font-medium'>Programmatic control:</span> Some components, such as `DropdownMenu`, can't be controlled with `open` or `onOpenChange` props. Instead, you use a `ref` to manage open and close behavior after layout calculation.
3031

3132
<div className='h-2' />
3233

0 commit comments

Comments
 (0)