Search

An expanding search bar for React that starts as a single icon. Press the icon and it opens into a search field as one object, with a spring setting for how the width settles. Corners and how far it leans toward the cursor can be tuned too. Suits navigation bars, headers and compact toolbars.

Search, at rest

Press · free, with full source

Search props

NameTypeDefaultDescription
cornernumber24pxCorner. From 0 to 24px.
givenumber50How far it leans toward the cursor. From 0 to 100.
widthnumber240pxThe field at rest. From 200 to 360px.

Free under MIT. Licence

More blocks

More press blocks