Searchbar
Searchbar Props
clearButton
boolean
true
Adds input clear button
colors
object
Object with Tailwind CSS colors classes
colors.inputBgIos
string
''
colors.inputBgMaterial
string
'bg-md-light-secondary-container dark:bg-md-dark-secondary-container'
colors.placeholderIos
string
''
colors.placeholderMaterial
string
'placeholder-md-light-on-surface-variant dark:placeholder-md-dark-on-surface-variant'
component
string
'div'
Component's HTML Element
disableButton
boolean
false
Adds button for cancel search and set its initial state
disableButtonText
string
'Cancel'
Disable button text
inputId
string
Input id attribute
inputStyle
CSSProperties
Additional input classes
placeholder
string | number
'Search'
Searchbar placeholder
value
any
Searchbar value
Searchbar Events
blur
function(e)
blur event handler
change
function(e)
change event handler
clear
function(e)
Fired on clear button click
disable
function(e)
Fired on searchbar disable
focus
function(e)
focus event handler
input
function(e)
input event handler
Examples
Last updated
