ClickorKeyboard shortcut Alt + L

Dragto resize

Nord Design System SearchDeveloperDeveloperGetting startedUsing Web ComponentsWebfontsCDNLocalizationCSS Framework Legacy ESLint PluginWorking with AIFAQDesignDesignGetting startedFoundationsAccessibilityColor SystemColor UtilitiesPrinciplesFigma ToolkitGridIconographyNamingNordhealth BrandTypographyThemesBrand assetsToolsComponentsComponentsAccordion New Aside New Autocomplete New AvatarBadgeBannerButtonButton GroupCalendarCard Updated CheckboxCollapsible New Combobox New Command MenuDate PickerDate Range Picker New DividerDrawer Updated DropdownEmpty StateField New FieldsetFilter Add ButtonFilter DateFilter Date RangeFilter DropdownFilter FieldFilter InputFilter Reset ButtonFooterHeaderIconInputInput Group New Item New Kbd New LayoutMessageMeter New Modal Updated NavigationNotificationNumber Field New Otp Field New Outline New Overflow List New Pagination New PopoutProgressProgress BarQrcodeRadioRangeResizable New Scroll Area New Segmented ControlSelectSkeletonSpinnerStackTabTableTagTextareaTime Picker New Timestamp New ToastToggleTooltipTop BarTruncate New Visually HiddenDesign TokensDesign TokensTailwind CSSTailwind CSSBlocksBlocksTemplatesTemplatesIconsIconsPlaygroundPlaygroundLatest UpdatesLatest UpdatesChangelogChangelogMigration guidesMigration guides
GitHub

Clickto expandKeyboard shortcut Alt + L

FilterInput Light DOM & Tailwind

Filter Input is a compact search/text field for filtering a collection. It replaces the small ad-hoc search inputs that sit in toolbars and table headers. By default it renders inline as a small search field with a leading search icon; set mode="chip" to collapse it behind a chip button that opens the input in a popout, which is handy in a crowded filter toolbar. It emits intent only: input as the user types and change when the value is committed. Your app owns the active filters and any URL/query state — read the value from the event target (or bind value) and filter accordingly. It is a control only, like Combobox: compose it inside a Field for a visible label, or set label for an accessible name when used standalone.

API reference

FilterInput

Filter Input is a compact search/text field for filtering a collection. It replaces the small ad-hoc search inputs that sit in toolbars and table headers. By default it renders inline as a small search field with a leading search icon; set mode="chip" to collapse it behind a chip button that opens the input in a popout, which is handy in a crowded filter toolbar. It emits intent only: input as the user types and change when the value is committed. Your app owns the active filters and any URL/query state — read the value from the event target (or bind value) and filter accordingly. It is a control only, like Combobox: compose it inside a Field for a visible label, or set label for an accessible name when used standalone.

<nord-filter-input></nord-filter-input>

Props

PropertyAttribute Description TypeDefault
modemodeHow the input is presented. - inline (default) renders the search field directly. - chip collapses the field behind a chip button that opens a popout containing the input.'inline' | 'chip''inline'
openopenWhether the chip-mode popout is open. Only meaningful with mode="chip".booleanfalse
sizesizeThe size of the search control. Defaults to s to match the other filter controls in a compact filter bar; set m or l to enlarge it.'s' | 'm' | 'l''s'
clearableclearableWhether to show a clear (✕) button while there is a value. Clearing resets the value to '', then fires input and change.booleanfalse
placeholderplaceholderPlaceholder text to display within the control.string | undefined
requiredrequiredDetermines whether the control is required or not. A required control is announced as such to assistive technology and, inside a <nord-field>, drives the required indicator on the <nord-field-label>. When using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.booleanfalse
readonlyreadonlyMakes the component readonly, so that it is not editable. Readonly differs from disabled in that readonly fields are still focusable and will be submitted with a form.booleanfalse
disableddisabledMakes the component disabled. This prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies.booleanfalse
namenameThe name of the form component.string | undefined
valuevalueThe value of the form component.string''
formformGets the form, if any, associated with the form element. The setter accepts a string, which is the id of the form.HTMLFormElement | null
Field properties
PropertyAttribute Description TypeDefault
labellabelLabel for the control. Ignored when the control is wrapped in a <nord-field>, which provides the label via <nord-field-label>.string''
hinthintOptional hint text shown with the control. Ignored inside a <nord-field>, which provides it via <nord-field-description>.string | undefined
hintBelowhint-belowRenders the hint below the control and any error instead of below the label.booleanfalse
hideLabelhide-labelVisually hide the label, but still expose it to assistive technologies.booleanfalse
errorerrorOptional error shown with the control. Ignored inside a <nord-field>, which provides it via <nord-field-error>.string | undefined
hideRequiredhide-requiredVisually hide the required indicator, but still expose the required state to assistive technologies.booleanfalse

Slots

Slot name Description
startLeading icon/content; defaults to a search icon.
endTrailing icon/content before the clear button.

Methods

Method nameParameters Description
show() => voidN/AOpen the chip popout.
hide() => voidN/AClose the chip popout.
focus(options?: FocusOptions) => voidoptions: An object which controls aspects of the focusing process.Programmatically move focus to the component.
blur() => voidN/AProgrammatically remove focus from the component.
click() => voidN/AProgrammatically simulates a click on the component.
EventDetail TypeDescription
inputNordEventDispatched as the user types into the input.
changeNordEventDispatched when the value is committed.
openNordEventDispatched when the chip-mode popout is opened.
closeNordEventDispatched when the chip-mode popout is closed.

CSS Properties

CSS Custom Properties provide more fine grain control over component presentation. We advise utilizing existing properties on the component before using these.

PropertyDescriptionDefault
--n-filter-input-inline-sizeControls the inline size, or width, of the inline input.
Light DOM & Tailwind. This component renders in the light DOM, so you can style it directly with your own CSS or Tailwind utility classes — there is no shadow boundary, and its default styles are low specificity, so your utilities win.