Input
A text input field for forms and search.
Preview
Props
| Prop | Type | Default | Description |
|---|---|---|---|
type | string | 'text' | HTML input type |
placeholder | string | — | Placeholder text |
disabled | boolean | false | Disables input |
value | string | — | Controlled value |
onChange | function | — | Change handler |
Usage
const { Input } = window.ColorSnap;
ReactDOM.createRoot(document.getElementById('root')).render(
React.createElement(Input, { placeholder: 'Enter text...' })
);