react-daisyui icon indicating copy to clipboard operation
react-daisyui copied to clipboard

Dropdown.Toggle accepts all ButtonProps or LabelProps + unstyled prop

Open AndrewBrough opened this issue 8 months ago • 4 comments

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<HTMLElement> props are available if unstyled={true}

Should be fully backwards compatible

Demo

https://github.com/user-attachments/assets/c1b6d8cf-b644-4a72-b14d-8aa43fd99543

AndrewBrough avatar Jul 30 '25 00:07 AndrewBrough

Deploy Preview for react-daisyui processing.

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

netlify[bot] avatar Jul 30 '25 00:07 netlify[bot]

Deploy Preview for react-daisyui processing.

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

netlify[bot] avatar Jul 30 '25 00:07 netlify[bot]

Deploy Preview for react-daisyui ready!

Name Link
Latest commit fe2947d6f43ca6eebaca4a21ce9656a8cb031827
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.

netlify[bot] avatar Jul 30 '25 00:07 netlify[bot]

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.

AndrewBrough avatar Jul 30 '25 04:07 AndrewBrough