Skip to content
Vy logo
  • Spor
  • Resources
Components

SearchInput

Search inputs are useful when searching through content

FigmaGitHub

Code examples

<SearchInput label="Search" />

Guidelines

A SearchInput is used for searching for content.

You may use functions like "reset" and others.

Code

<SearchInput />

import { SearchInput } from "@vygruppen/spor-react";

Input for searching or filtering content

Props

Name
Type
Required?
Description
valuestringThe value, if controlled
onChangefunctionCallback for when the value changes
onResetfunctionCallback for when the input is reset. When this is specified, a reset button appears to the right of the input field
labelstringThe label of the input field. Default "Search" (localized)
variant"core" | "floating"Defaults to core.