Skip to content

[component] Create Input #21

@theoribbi

Description

@theoribbi

Summary

Implement the Input component for NativeUI, inspired by the shadcn/ui Input.

Requirements

  • Use TextInput from react-native as the base component.
  • Support the following features:
    • Placeholder text.
    • Disabled state.
    • Optional left and right icons.
    • Error state with visual feedback.
    • Different input types (e.g., email, password, number).
  • 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 an input.tsx file under /registry/input.
  • Follow the structure and naming conventions similar to shadcn/ui Input.

References

Notes

Focus on keeping the Input 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 component

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions