API reference
FilterResetButton
Filter Reset Button clears every active filter at once. It is a thin,
intent-only control: it renders a plain button and dispatches a reset event
when pressed. Your app owns the active filters and is responsible for clearing
them (and any URL/query state) in the handler — the button holds no state of
its own.
Disable it while there is nothing to reset by binding disabled to whether any
filter is active (e.g. ?disabled=${!hasFilters}). Mirrors the Provet Cloud
filter reset button.
<nord-filter-reset-button></nord-filter-reset-button>Props
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
disabled | disabled | Makes the component disabled. This prevents users from being able to interact with it and conveys its inactive state to assistive technologies. Bind it to whether any filter is active so the control is only enabled when there is something to reset. | boolean | false |
size | size | The size of the button. | 's' | 'm' | 'l' | 's' |
| Event | Detail Type | Description |
|---|---|---|
reset | NordEvent | Dispatched when the button is pressed to clear all active filters. |
CSS Properties
CSS Custom Properties provide more fine grain control over component presentation. We advise utilizing existing properties on the component before using these.
| Property | Description | Default |
|---|---|---|
--n-filter-reset-button-color | Controls the text and icon color while the button is enabled. | var(--n-color-text-highlight) |
Dependencies
This component is internally dependent on the following components:
- <nord-button>
Button
Buttons are used for interface actions. Primary style should be used only once per section for main call-to-action, while other styles can appear more frequently.
- <nord-icon>
Icon
Icons are used to provide additional meaning or in places where text label doesn’t fit. Icon component allows you to display an icon from the Nordicons library.