Skip to content

docs: add Tabs, Segmented control, and Exclusive category filter pages - #52

Open
anahernandez-dev wants to merge 2 commits into
mainfrom
docs/tabs-segmented-category-filter
Open

anahernandez-dev wants to merge 2 commits into
mainfrom
docs/tabs-segmented-category-filter

Conversation

@anahernandez-dev

Copy link
Copy Markdown
Collaborator

Summary

Adds guideline pages for three components that are easy to confuse, and sets out when to use each one.

Component Subcategory Job
Tabs Navigation (new) Moves between sections of different content. Navigation tabs are the default. Plain tabs are for side panels and drawers.
Segmented control Inputs Switches the view of the same data: format, grouping, or time scale. Not in Wonder Blocks yet. Design is building it in Figma.
Exclusive category filter Inputs Narrows a simple list to one category at a time, with "All" as the reset.

New pages

  • Tabs has a live ResponsiveNavigationTabs demo. It covers tabs vs. navigation tabs, 2–6 tabs, overflow, and where tabs can go (drawers yes, modals no).
  • Segmented control has Content (text, icon only) and Style (default, chunky for the learner product) variants, overflow (switch to a dropdown), and accessibility notes for the future Wonder Blocks build.
  • Exclusive category filter has a live ExclusiveCategoryFilter demo. It covers 2–6 options, wrapping instead of scrolling, no Clear all filters, and not combining it with a filter bar. It can be paired with search or a segmented control.

Updated pages

  • Filter and sort: "Pills" is now "Exclusive category filter". The Segmented control and Tabs rows are filled in.
  • Active filters / Clear filter: new rows for the Exclusive category filter, and clearer Segmented control wording.

Dependencies

  • Adds @khanacademy/wonder-blocks-tabs and @khanacademy/wonder-blocks-filters for the live demos.

Review notes

  • Header images and examples were exported from Figma at 2x.
  • Typecheck passes. All pages render in Storybook, and internal links and anchors resolve.
  • Not yet checked: the Storybook Accessibility panel, and the syl-dark theme.

🤖 Generated with Claude Code

- Tabs (new Navigation subcategory): navigation tabs by default, plain
  tabs inside side panels and drawers, with a live navigation tabs demo.
- Segmented control (Inputs): view switching for format, grouping, and
  time scale, with Content and Style variants. Not in Wonder Blocks yet.
- Exclusive category filter (Inputs): single-category filtering with a
  live demo, a 6-option cap, wrapping, and no Clear all filters.
- Filter and sort, Active filters, and Clear filter now cover all three.
- Add @khanacademy/wonder-blocks-tabs and wonder-blocks-filters for the
  demos.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@anahernandez-dev
anahernandez-dev requested a review from a team as a code owner November 18, 2026 19:12
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

A new build was pushed to Chromatic! 🚀

https://6a5008743971119020a6233b-dgsxfqmkbs.chromatic.com/

…filter

- Add a Label section to both pages: when to show a visible label, and
  block start vs. inline start position.
- Update the Activation image to show a block start Group by label.
- Replace the icon-only chart container image with a close-up.
- Give the Exclusive category filter demo a visible Subject label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant