Selector

A generic disclosure dropdown — a toggle button that reveals an arbitrary content panel below it. Renders template-parts/atoms/selector.

Arbitrary content (a list of links)

Wrapping a plain <select>

Thin variant (filter-row spec)

Used by the Insights Block's Type/Year filters — same darker body-copy color as dark_toggle, plus tighter padding. Pass 'thin' => true alone.

Playground

Change a value below to update the preview live.

Usage

get_template_part( 'template-parts/atoms/selector', null, [
    'label'       => 'Filter by Practice Area',
    'content'     => function () { ... }, // callable (preferred) or a wp_kses_post'd string
    'dark_toggle' => false, // optional — true for the darker body-copy toggle color instead of orange
    'thin'        => false, // optional — compact variant (darker color + tighter padding),
                              // matching the Figma filter-row spec; self-contained, no need
                              // to also pass dark_toggle
    'classes'     => '', // optional, appended alongside the selector class
    'id'          => '', // optional
] );