-
-
Notifications
You must be signed in to change notification settings - Fork 4
Labels
component:newCreation of a new componentCreation of a new component
Description
Summary
Implement the Collapsible component for NativeUI, inspired by the shadcn/ui Collapsible.
Requirements
- Use
ViewandPressablefromreact-nativeas base components. - Support the following features:
- Toggle visibility of content sections.
- Controlled open/close state via props.
- Optional animation for expand/collapse transitions.
- Style the component using nativewind utility classes.
- Allow passing a
classNameprop to customize or extend the default styles. - Ensure type safety with TypeScript.
Deliverables
- Create a
collapsible.tsxfile under/registry/collapsible. - Follow the structure and naming conventions similar to shadcn/ui Collapsible.
References
Notes
Focus on keeping the Collapsible 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