Skip to content

Search Input

The SearchInput component is designed for searching content with a consistent UI style and optional customization for variants or placeholder text.

  • Customizable variants: Supports multiple styling variants.
  • Placeholder support: Provides hints for expected search content.
  • Accessible: Designed for keyboard and screen reader accessibility.
  • Composable: Can be used inline or as part of forms and toolbars.
  • Responsive design: Adjusts to container width and layout automatically.
PropTypeDefaultDescription
variantstringStyle variant of the search input (e.g., outlined, filled).
placeholderstringPlaceholder text displayed when the input is empty.
valuestringCurrent value of the input; supports binding for reactive updates.
disabledbooleanfalseDisables the input if true.
classstringOptional CSS classes for custom styling.
stylestringInline styles for layout or visual customization.
  • Keep placeholder text concise and descriptive.
  • Use variants consistently across your application for visual coherence.
  • Bind value when using the component in reactive or controlled forms.
  • Ensure accessible labeling for screen readers if the input is part of a form.
  • Avoid overloading with extra icons or buttons that may distract from searching.