MVP Verson: 0.4.8 beta
Lang Icon
Toggle Icon
Search
Input with search function.
Default
PreviewCode
Props
Universal Props
PropTypeAccepted ValuesDescriptionDefaultVersion
sizestringsmall | medium | large | hugeProvides four preset sizes. Custom sizing can be applied using the "sx" property.medium-
sxobjectobjectCustom inline styles for the Search input. Note: Inline styles via the "style" prop will override overlapping styles from "sx".{}-
onSearchfunction(e)-Callback triggered on search button click or Enter key press.--
pathstringstringIcon path used for the search button.--
valueany-Controlled input value.--
defaultValueany-Initial input value (uncontrolled mode).--
disabledbooleantrue | falseWhether the input is disabled.false-
placeholderstringstringPlaceholder text displayed in the input.--
classNamestring-Custom CSS class for the search component.--
btnStylesobject-Customize built-in button styles-0.3.2
btnTextstring-Customize built-in button text搜索0.3.2