Skip to the page

UI

Filter

The Filter changes what one answer shows, such as its season, without asking a new question.

In use

How is Kyle Schwarber hitting this season?

Kyle Schwarber (PHI) was one of the better hitters in MLB in 2026.

Dugout looked up the hitting and defence of Kyle Schwarber (PHI) for the 2026 season.

Kyle Schwarber (PHI)Phillies, designated hitter
StatSchwarberMLB average
Better than average.861.718
Worse than average.235.244
46
1 fewer out than an average first basemanToo few chances to judge−1
Cost 1 run more than an average fielderToo few chances to judge−0.6

Defence is from the 2026 regular season.

The numbers come from the MLB Stats API and Baseball Savant, as of October 24.

The period Filter on a player's season. Show results refines the answer where it is.

Who hit the most home runs this season?

Pete Crow-Armstrong (CHC) and Kyle Schwarber (PHI) had the most home runs (45); Pete Alonso (BAL) was next with 43.

Dugout ranked the home run leaders for the 2026 regular season.

Most home runs, 2026 regular season

The numbers come from the MLB Stats API.

A ranking's Filter, with a dropdown for the teams.

Anatomy

  1. PillDrawn 32px tall inside a 44px tap area, in the card's top right corner.
  2. PanelOpens from the pill, over the card, with the Pop shadow.
  3. OptionsOption chips for short lists, a dropdown for long ones.
  4. Show resultsThe panel's primary button.

States

Filter pillThe border darkens and the pill lifts 1px.
Rest
Hover
Focus

When to use it

Every answer with numbers has a Filter, and it changes only that answer.

When not to use it

Answers without numbers have no Filter. Don’t use the Filter to ask a different question.

Accessibility

The pill says whether its panel is open. Focus moves into the panel when it opens and back to the pill when it closes.

Tokens

In code: Filter in src/ds/components/Filter, used by Periods and RankFilter

Tokens
TokenWhat it sets
--ds-shadow-popThe panel's shadow.
--ds-duration-popHow long the panel takes to open and close.
--ds-pop-shiftHow far the panel rises as it opens, and sinks as it closes.
--ds-panel-widthThe panel's width on a wide screen.
--ds-pill-heightThe pill as drawn, inside its 44px tap.