Proposal: Dialog Media #9138
Unanswered
georgedrury
asked this question in
Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all :)
I've been working on extending the Dialog component with a new slot, DialogMedia.
Over the past few years I've created custom dialogs on shadcn projects to include media – a mix of decorative and functional, from illustrations to product galleries. I kept creating separate dialog components using Radix as a base, then recently I extended the composition of shadcn's dialog to make life easier. I think this would be a great addition to the core shadcn component.
I've added the full code to a small registry if you want to test it out
npx shadcn@latest add https://dialog-media.georgedrury.co.uk/r/dialogOr if you want to find out more and see some examples
https://dialog-media.georgedrury.co.uk
Beta Was this translation helpful? Give feedback.
All reactions