Input

A text input field for forms and search.

Preview

Props

PropTypeDefaultDescription
typestring'text'HTML input type
placeholderstringPlaceholder text
disabledbooleanfalseDisables input
valuestringControlled value
onChangefunctionChange handler

Usage

const { Input } = window.ColorSnap;
ReactDOM.createRoot(document.getElementById('root')).render(
  React.createElement(Input, { placeholder: 'Enter text...' })
);