You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/content/docs/index.mdx
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,13 +20,14 @@ Built with familiar tools and libraries, it follows consistent styling, structur
20
20
21
21
## Key differences from shadcn/ui
22
22
23
-
- <ahref='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
-
- <ahref='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
-
- <spanclassName='font-medium'>Portals</span>: React Native doesn't support DOM portals. Components like modals, dropdowns, and toasts require a `PortalHost`.
26
-
- <spanclassName='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`.)
- <spanclassName='font-medium'>Icons</span>: Uses a wrapper component in combination with a <ahref='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
-
- <spanclassName='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
+
- <ahref='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
+
- <ahref='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
+
- <spanclassName='font-medium'>Portals:</span> React Native doesn't support DOM portals. Components like modals, dropdowns, and toasts require a `PortalHost`.
26
+
- <spanclassName='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
+
- <spanclassName='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.
- <spanclassName='font-medium'>Icons:</span> Uses a wrapper component in combination with a <ahref='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
+
- <spanclassName='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.
0 commit comments