Make changes to your profile here. Click save when you're done.
<%=renderUI::Dialog.new(attributes: {id: "phlex-edit-profile"})do%><%=renderUI::DialogTrigger.new{"Edit Profile"}%><%=renderUI::DialogOverlay.newdo%><%=renderUI::DialogContent.new(classes: "sm:max-w-[425px]")do%><%=renderUI::DialogHeader.newdo%><%=renderUI::DialogTitle.new{"Edit profile"}%><%=renderUI::DialogDescription.new{"Make changes to your profile here. Click save when you're done."}%><%end%><divclass="grid gap-4 py-4"><divclass="grid grid-cols-4 items-center gap-4"><labelfor="phlex-name"class="text-right text-sm font-medium">Name</label><inputid="phlex-name"type="text"value="Pedro Duarte"class="col-span-3 flex h-9 w-full rounded-md border bg-transparent px-3 py-1 text-sm"/></div></div><%=renderUI::DialogFooter.newdo%><%=renderUI::DialogClose.new(variant: :default){"Save changes"}%><%end%><%end%><%end%><%end%>
Edit profile
Make changes to your profile here. Click save when you're done.
<%=renderUI::DialogComponent.new(attributes: {id: "vc-edit-profile"})do%><%=render(UI::DialogTriggerComponent.new){"Edit Profile"}%><%=renderUI::DialogOverlayComponent.newdo%><%=renderUI::DialogContentComponent.new(classes: "sm:max-w-[425px]")do%><%=renderUI::DialogHeaderComponent.newdo%><%=render(UI::DialogTitleComponent.new){"Edit profile"}%><%=render(UI::DialogDescriptionComponent.new){"Make changes to your profile here. Click save when you're done."}%><%end%><divclass="grid gap-4 py-4"><divclass="grid grid-cols-4 items-center gap-4"><labelfor="vc-name"class="text-right text-sm font-medium">Name</label><inputid="vc-name"type="text"value="Pedro Duarte"class="col-span-3 flex h-9 w-full rounded-md border bg-transparent px-3 py-1 text-sm"/></div></div><%=renderUI::DialogFooterComponent.newdo%><%=render(UI::DialogCloseComponent.new(variant: :default)){"Save changes"}%><%end%><%end%><%end%><%end%>
Custom Close Button
A dialog with a custom close button.
Share link
Anyone who has this link will be able to view this.
<%=render"ui/dialog",attributes: {id: "custom-close"}do%><%=render"ui/dialog/trigger"do%>Share<%end%><%=render"ui/dialog/overlay"do%><%=render"ui/dialog/content",classes: "sm:max-w-md"do%><%=render"ui/dialog/header"do%><%=render"ui/dialog/title"do%>Share link<%end%><%=render"ui/dialog/description"do%>Anyone who has this link will be able to view this.<%end%><%end%><divclass="flex items-center space-x-2"><divclass="grid flex-1 gap-2"><%=render"ui/label",for: "link",classes: "sr-only"do%>Link<%end%><%=render"ui/input",id: "link",value: "https://ui.shadcn.com/docs/installation",attributes: {readonly: true}%></div><%=render"ui/button",size: "icon",variant: "secondary"do%><svgxmlns="http://www.w3.org/2000/svg"width="16"height="16"viewBox="0 0 24 24"fill="none"stroke="currentColor"stroke-width="2"stroke-linecap="round"stroke-linejoin="round"><rectwidth="14"height="14"x="8"y="8"rx="2"ry="2"/><pathd="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><spanclass="sr-only">Copy</span><%end%></div><%=render"ui/dialog/footer",classes: "sm:justify-start"do%><%=render"ui/dialog/close",variant: :secondarydo%>Close<%end%><%end%><%end%><%end%><%end%>
Share link
Anyone who has this link will be able to view this.
<%=renderUI::Dialog.new(attributes: {id: "phlex-custom-close"})do%><%=renderUI::DialogTrigger.new{"Share"}%><%=renderUI::DialogOverlay.newdo%><%=renderUI::DialogContent.new(classes: "sm:max-w-md")do%><%=renderUI::DialogHeader.newdo%><%=renderUI::DialogTitle.new{"Share link"}%><%=renderUI::DialogDescription.new{"Anyone who has this link will be able to view this."}%><%end%><divclass="flex items-center space-x-2"><divclass="grid flex-1 gap-2"><%=renderUI::Label.new(for: "phlex-link",classes: "sr-only"){"Link"}%><%=renderUI::Input.new(id: "phlex-link",value: "https://ui.shadcn.com/docs/installation",readonly: true)%></div><%=renderUI::Button.new(size: "icon",variant: "secondary")do%><svgxmlns="http://www.w3.org/2000/svg"width="16"height="16"viewBox="0 0 24 24"fill="none"stroke="currentColor"stroke-width="2"stroke-linecap="round"stroke-linejoin="round"><rectwidth="14"height="14"x="8"y="8"rx="2"ry="2"/><pathd="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><spanclass="sr-only">Copy</span><%end%></div><%=renderUI::DialogFooter.new(classes: "sm:justify-start")do%><%=renderUI::DialogClose.new(variant: :secondary){"Close"}%><%end%><%end%><%end%><%end%>
Share link
Anyone who has this link will be able to view this.
<%=renderUI::DialogComponent.new(attributes: {id: "vc-custom-close"})do%><%=render(UI::DialogTriggerComponent.new){"Share"}%><%=renderUI::DialogOverlayComponent.newdo%><%=renderUI::DialogContentComponent.new(classes: "sm:max-w-md")do%><%=renderUI::DialogHeaderComponent.newdo%><%=render(UI::DialogTitleComponent.new){"Share link"}%><%=render(UI::DialogDescriptionComponent.new){"Anyone who has this link will be able to view this."}%><%end%><divclass="flex items-center space-x-2"><divclass="grid flex-1 gap-2"><%=render(UI::LabelComponent.new(for: "vc-link",classes: "sr-only")){"Link"}%><%=renderUI::InputComponent.new(id: "vc-link",value: "https://ui.shadcn.com/docs/installation",readonly: true)%></div><%=render(UI::ButtonComponent.new(size: "icon",variant: "secondary"))do%><svgxmlns="http://www.w3.org/2000/svg"width="16"height="16"viewBox="0 0 24 24"fill="none"stroke="currentColor"stroke-width="2"stroke-linecap="round"stroke-linejoin="round"><rectwidth="14"height="14"x="8"y="8"rx="2"ry="2"/><pathd="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg><spanclass="sr-only">Copy</span><%end%></div><%=renderUI::DialogFooterComponent.new(classes: "sm:justify-start")do%><%=render(UI::DialogCloseComponent.new(variant: :secondary)){"Close"}%><%end%><%end%><%end%><%end%>