-
Notifications
You must be signed in to change notification settings - Fork 3
Labels
component:newCreation of a new componentCreation of a new component
Description
Summary
Implement the Separator component for NativeUI, inspired by the shadcn/ui Separator.
Requirements
- Use
View
fromreact-native
as the base component. - Support the following features:
- Horizontal and vertical orientations.
- Optional label or content centered within the separator.
- Customizable thickness, color, and spacing.
- Style the component using nativewind utility classes.
- Allow passing a
className
prop to customize or extend the default styles. - Ensure type safety with TypeScript.
Deliverables
- Create a
separator.tsx
file under/registry/separator
. - Follow the structure and naming conventions similar to shadcn/ui Separator.
References
Notes
Focus on keeping the Separator simple, accessible, and easily customizable.
The goal is to make it easy to clone and adapt when building apps.
Metadata
Metadata
Assignees
Labels
component:newCreation of a new componentCreation of a new component