Skip to content

[docs][checkbox group] Mention indeterminate state - #4345

Merged
aarongarciah merged 5 commits into
mui:masterfrom
aarongarciah:checkbox-indeterminate-example
Mar 20, 2026
Merged

aarongarciah merged 5 commits into
mui:masterfrom
aarongarciah:checkbox-indeterminate-example

Conversation

@aarongarciah

@aarongarciah aarongarciah commented Mar 16, 2026 •

Copy link
Copy Markdown
Member

@aarongarciah aarongarciah self-assigned this Mar 16, 2026
@aarongarciah aarongarciah added docs Improvements or additions to the documentation. component: checkbox Changes related to the checkbox component. component: checkbox group Changes related to the checkbox group component. labels Mar 16, 2026
@aarongarciah
aarongarciah force-pushed the checkbox-indeterminate-example branch from 180c5aa to 996b8af Compare March 16, 2026 14:20
@aarongarciah aarongarciah mentioned this pull request Mar 16, 2026
12 of 29 tasks
@pkg-pr-new

pkg-pr-new Bot commented Mar 16, 2026 •

Copy link
Copy Markdown
  • base-ui-tanstack-start

  • vite-css-base-ui-example

    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/react@4345
    
    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/utils@4345
    

commit: 4ff4dd2

@netlify

netlify Bot commented Mar 16, 2026

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 180c5aa
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/69b8118078e7910008ae831e
😎 Deploy Preview https://deploy-preview-4345--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mui-bot

mui-bot commented Mar 16, 2026 •

Copy link
Copy Markdown

Bundle size report

Bundle Parsed size Gzip size
@base-ui/react 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@netlify

netlify Bot commented Mar 16, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 4ff4dd2
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/69bd24dc5ab5eb00086f63d3
😎 Deploy Preview https://deploy-preview-4345--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@aarongarciah
aarongarciah marked this pull request as ready for review March 16, 2026 14:27
@colmtuite

Copy link
Copy Markdown
Contributor

@aarongarciah Is this useful on Checkbox, outside of Checkbox Group?

@aarongarciah

Copy link
Copy Markdown
Member Author

@colmtuite it's a bit tricky. It's true that the (only?) use case I can think of for indeterminate state is a parent checkbox, but it's probably good to also make the indeterminate state more discoverable on individual checkboxes. The parent checkbox example on the Checkbox Group page requires users to pass the allValues prop, which is probably fine, but I thought that in some scenarios some users would want full control of how the parent checkbox/indeterminate state behaves.

cc @atomiks in case you have some thoughts on wether it'd be a valid use case for users to obviate allValues and do their own thing.

@colmtuite

Copy link
Copy Markdown
Contributor

Possibly. If there is any valid use case, it's probably helpful. If there isn't (which I suspect is accurate), then it feels like promoting it to an example is confusing, and just the API reference should be enough.

@atomiks

atomiks commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

Yeah I think the state only needs to be shown in the Checkbox Group parent demo, which is already the case

@aarongarciah aarongarciah removed the component: checkbox Changes related to the checkbox component. label Mar 20, 2026
@aarongarciah aarongarciah changed the title [docs][checkbox][checkbox group] Add indeterminate example [docs][checkbox group] Mention indeterminate state Mar 20, 2026
@aarongarciah

aarongarciah commented Mar 20, 2026 •

Copy link
Copy Markdown
Member Author

Fair enough. I removed the example from the Checkbox page. I think it'd be valuable to mention the indeterminate state in the CheckboxGroup page somehow. It helps with discoverability and search. wdyt? See https://github.com/mui/base-ui/pull/4345/changes#diff-df295b9a914c9c7404236127059dfbbebf9e3ae4800ca4530c8dd0c58a254992

edit: with the addition the heading is a bit of a mouthful

Screenshot 2026-03-20 at 08 49 04

@colmtuite

Copy link
Copy Markdown
Contributor

Can just keep the note and remove it from the heading

@aarongarciah

Copy link
Copy Markdown
Member Author

Can just keep the note and remove it from the heading

Updated

@aarongarciah
aarongarciah merged commit 32c3716 into mui:master Mar 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: checkbox group Changes related to the checkbox group component. docs Improvements or additions to the documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants