About this set
Search bars that let people narrow the query before they submit it. The set has three patterns. The department select joins a native select, the field and an icon button into one bar, the layout large shops use so someone can search only Books or only Garden. Scope radios above the field turn a documentation search into Everything, Guides, API reference or Community with pill-shaped radio buttons. What and where puts two labelled fields side by side for job boards, directories and booking sites, with a role or skill on the left and a location on the right, and it stacks into a column on phones. Every control is a native element with a label, so the scope submits with the query as an ordinary GET parameter and no JavaScript is needed. The radios are real inputs visually hidden over each pill, so arrow keys move between scopes the way a radio group should. The Bootstrap version uses .input-group with .form-select and .btn-check radios; the Tailwind version uses peer-checked and focus-within utilities.
What’s included
- Department select, field and button joined into one bar
- Scope radios styled as pills, grouped in a fieldset with a legend
- What and where fields with visible labels that stack on phones
- Everything submits as a normal form, no JavaScript
- Bootstrap version on .input-group, .form-select and .btn-check
Accessibility
The select and the search field each have a label, the scope radios sit in a fieldset whose hidden legend reads Search in, and the what and where fields use their visible captions as labels. Arrow keys move between scope radios and Tab moves between groups. The select and inputs get an accent ring, the radios draw a 2px outline on the visible pill, and transitions stop under prefers-reduced-motion.
Customise it
Change --ss-accent, --ss-ink and --ss-line on .ss for colour, and the height on .ss-group or .ss-field input for size. Bootstrap reuses the --ss-* properties with --bs-btn-* variables on the chips; in Tailwind edit the --color-ss-* theme colours and the bg-chevron utility for the select arrow.






