Skip to content

[field] Add nativeLabel prop to Label component - #3723

Merged
atomiks merged 4 commits into
mui:masterfrom
atomiks:feat/native-label
Jan 14, 2026
Merged

atomiks merged 4 commits into
mui:masterfrom
atomiks:feat/native-label

Conversation

@atomiks

@atomiks atomiks commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

This lets users replace <Field.Label> with a <div> to prevent inheriting some unexpected <label> behaviors, especially for <button> form controls where you want clicks to only focus a control instead of triggering .click(), along with avoiding :hover on the <button> being triggered when hovering the label.

See #3722

@atomiks atomiks added type: new feature Expand the scope of the product to solve a new problem. component: field Changes related to the field component. labels Jan 12, 2026
@atomiks atomiks changed the title [field] Add nativeLabel prop [field] Add nativeLabel prop to Label component Jan 12, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jan 12, 2026 •

Copy link
Copy Markdown
  • vite-css-base-ui-example

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

commit: 8ea9e0f

@mui-bot

mui-bot commented Jan 12, 2026 •

Copy link
Copy Markdown

Bundle size report

Bundle Parsed size Gzip size
@base-ui/react 🔺+176B(+0.04%) 🔺+90B(+0.07%)

Details of bundle changes


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

@netlify

netlify Bot commented Jan 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 8ea9e0f
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6967188a7d20980008f21b66
😎 Deploy Preview https://deploy-preview-3723--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.

@atomiks
atomiks force-pushed the feat/native-label branch 3 times, most recently from 7ab9dcc to 283a637 Compare January 12, 2026 07:56
@atomiks
atomiks marked this pull request as ready for review January 12, 2026 08:01
@greptile-apps

greptile-apps Bot commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

Required label not found on this PR.

@atomiks
atomiks force-pushed the feat/native-label branch 2 times, most recently from 3719ff7 to 06b28cf Compare January 12, 2026 08:19
@Janpot Janpot removed the greptile label Jan 12, 2026
@atomiks
atomiks force-pushed the feat/native-label branch 2 times, most recently from 92dd3c3 to 7b99d05 Compare January 14, 2026 03:55
@atomiks
atomiks merged commit 9466ac6 into mui:master Jan 14, 2026
@atomiks
atomiks deleted the feat/native-label branch January 14, 2026 04:23
atomiks added a commit to atomiks/base-ui that referenced this pull request Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: field Changes related to the field component. type: new feature Expand the scope of the product to solve a new problem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants