Skip to content

Conversation

@AndrewBrough
Copy link
Contributor

@AndrewBrough AndrewBrough commented Jul 30, 2025

Something that was bothering me - Dropdown.Toggle doesn't accept all ButtonProps but easily could. Caused me to use button={false} and just put my own Button inside of it many times. Added the same support for Label if button={false}.

Also added an unstyled prop while I was there in case people want to use their own component but still have the Toggle work properly. Only HTMLAttributes props are available if unstyled={true}

Should be fully backwards compatible

Demo

Screen.Recording.2025-07-30.at.12.08.02.AM-compressed.mp4

@netlify
Copy link

netlify bot commented Jul 30, 2025

👷 Deploy Preview for react-daisyui processing.

Name Link
🔨 Latest commit 9da8e4f
🔍 Latest deploy log https://app.netlify.com/projects/react-daisyui/deploys/6889690a09c7db0009012fb2

1 similar comment
@netlify
Copy link

netlify bot commented Jul 30, 2025

👷 Deploy Preview for react-daisyui processing.

Name Link
🔨 Latest commit 9da8e4f
🔍 Latest deploy log https://app.netlify.com/projects/react-daisyui/deploys/6889690a09c7db0009012fb2

@netlify
Copy link

netlify bot commented Jul 30, 2025

Deploy Preview for react-daisyui ready!

Name Link
🔨 Latest commit fe2947d
🔍 Latest deploy log https://app.netlify.com/projects/react-daisyui/deploys/68899a1897d0b300080ca0b6
😎 Deploy Preview https://deploy-preview-479--react-daisyui.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.

…on" to each tag for accessibility and testing, update existing and add tests for tag rendering (button, label, div)
@AndrewBrough
Copy link
Contributor Author

Fixed a few intellisense mistakes in the last two commits.

Hoping this is an easy merge, though not sure if you're accepting PRs before the 6.0 release. If I can help that along too, happy to.

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