Saltar al contenido
El Muestrario

componente · @solu30/ui-kit/input

FilterableSection

Sección plegable que se muestra, se expande o se esconde según el término de búsqueda que reciba.

Seguir leyendo — 2 párrafos más

Wraps CollapsibleSection with search-filter behavior.

When searchTerm is empty the section renders normally (collapsible). When searchTerm matches the title or any keyword the section renders expanded and non-collapsible with a highlight header. When searchTerm does not match, the section is hidden (returns null).

1 sitio de import en 1 de 15 verticales — un archivo que la importa cuenta una vez, monte una instancia o veinte.

  • TheCharterPanel

El componente, montado

Cargando el componente del paquete instalado…

Cómo se usa

import { FilterableSection } from '@solu30/ui-kit/input'

Props

6 props declaradas en los tipos de la versión instalada.
PropRequeridaTipoQué hace
titlesístring—
iconopcionalReactNode—
keywordsopcionalstring[]Keyword strings to match against the search term (in addition to title)
childrensíReactNode—
searchTermopcionalstringCurrent search term — when empty, renders normally; when set, shows only matching sections
matchHeaderClassNameopcionalstringClass applied to the header when the section matches a search query