Add Live Search and Color Swatch Grid
Problem / Motivation
Currently, our UI library lacks two interactive components that are frequently needed in demos and production screens:
- A searchable dropdown with keyboard accessibility.
- A responsive color swatch grid with selection and copy-to-clipboard functionality.
These components improve the usability of the UI library and provide ready-to-use interactive elements for future screens.
Proposed Solution
- Implement a Live Search component (
live-search.tsx) with:
- Keyboard navigation
- Debounced input
- Customizable rendering of items
- Implement a Color Swatch Grid component (
color-swatch-grid.tsx) with:
- Responsive layout
- Selection callback
- Copy-to-clipboard support
- Update
components.tsx to import and register these components in the demo list.
Acceptance Criteria
Next Steps (Optional)
- Refine component styles to fully match the design system (Tailwind tokens, theme colors).
- Add unit tests or Storybook stories for both components.
- Move demo/sample data into a shared fixture for consistency across demos.
Add Live Search and Color Swatch Grid
Problem / Motivation
Currently, our UI library lacks two interactive components that are frequently needed in demos and production screens:
These components improve the usability of the UI library and provide ready-to-use interactive elements for future screens.
Proposed Solution
live-search.tsx) with:color-swatch-grid.tsx) with:components.tsxto import and register these components in the demo list.Acceptance Criteria
live-search.tsxandcolor-swatch-grid.tsxfiles added to the UI components folder.components.tsx.npm run build) with no errors.Next Steps (Optional)