@pagedotapp/page-select
v0.0.0-alpha.13
Published
PageSelect - A reusable React component
Readme
@pagedotapp/page-select
A dropdown select component built on Radix UI
Installation
npm install @pagedotapp/page-selectUsage
import { PageSelect } from "@pagedotapp/page-select"
function App() {
return (
<PageSelect
options={options}
value={value}
onChange={handleChange}
placeholder="Select..."
/>
)
}Props
See the TypeScript definitions for detailed prop types.
Styling
This component uses CSS modules for styling. The styles are injected automatically when you use the component.
Dependencies
Peer Dependencies
- React >=16.8.0
- React DOM >=16.8.0
Required Dependencies
- @radix-ui/react-select: ^2.2.5
License
MIT © PageStudio
