@saas-ui/search-input
TypeScript icon, indicating that this package has built-in type declarations

1.4.2 • Public • Published

@saas-ui/search-input

A Search Input component for Chakra UI

Installation

$ yarn add @saas-ui/search-input

#or

$ npm i @saas-ui/search-input --save

Usage

import { SearchInput } from '@saas-ui/search-input'

export default const App = () => {
  const [value, setValue] = useState(null)

  const onChange = (e) => {
    setValue(e.target.value)
  }

  const onReset = () => {
    setValue(null)
  }

  return (
    <Box>
      <SearchInput onChange={onChange} onReset={onReset} value={value} />
    </Box>
  )
}

Docs

https://www.saas-ui.dev/docs/forms/search-input

Source

https://github.com/saas-js/saas-ui/tree/next/packages/saas-ui-search-input

License

MIT - Appulse Software

Package Sidebar

Install

npm i @saas-ui/search-input

Homepage

saas-ui.dev/

Weekly Downloads

221

Version

1.4.2

License

MIT

Unpacked Size

23.3 kB

Total Files

13

Last publish

Collaborators

  • eelcow