Seed Bible extension API (v1.19.0) / seed-bible/components / FilterPills
Function: FilterPills()
function FilterPills<V extends string>(
__namedParameters: FilterPillsProps<V>,
): Element;A single row of pill-shaped filters, one of which is selected (All, Notes, Bookmarks…). When the pills don't fit, the row scrolls sideways rather than wrapping: with the trackpad, the vertical mouse wheel, or the arrows that appear at each end on devices with a mouse. An edge fades while pills are hidden past it.
It's a tab list: Tab reaches the selected pill, and the arrow keys, Home and End move between pills, which Enter or Space then picks.
To restyle it for a surface, set the --sb-filter-pills-* custom properties in FilterPills.css on the className you pass.
Type Parameters
| Type Parameter |
|---|
V extends string |
Parameters
| Parameter | Type |
|---|---|
__namedParameters | FilterPillsProps<V> |
Returns
Element