mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
feat(widgets): add dialog and alert-dialog widgets
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<lcui-app>
|
||||
<ui>
|
||||
<dialog>
|
||||
<dialog-trigger>
|
||||
<button variant="outline">Open Dialog</button>
|
||||
</dialog-trigger>
|
||||
<portal>
|
||||
<dialog-overlay>
|
||||
<dialog-content>
|
||||
<dialog-header>
|
||||
<dialog-title>Edit profile</dialog-title>
|
||||
<dialog-description>
|
||||
Make changes to your profile here. Click save when you're done.
|
||||
</dialog-description>
|
||||
</dialog-header>
|
||||
<field>
|
||||
<label>Name</label>
|
||||
<textinput tabindex="0">Pedro Duarte</textinput>
|
||||
</field>
|
||||
<field>
|
||||
<label>Username</label>
|
||||
<textinput tabindex="0">@peduarte</textinput>
|
||||
</field>
|
||||
<dialog-footer>
|
||||
<button variant="outline" data-dialog-close="true">Cancel</button>
|
||||
<button variant="primary">Save changes</button>
|
||||
</dialog-footer>
|
||||
<button class="dialog-close" variant="ghost" size="icon" data-dialog-close="true"><icon name="dismiss" /></button>
|
||||
</dialog-content>
|
||||
</dialog-overlay>
|
||||
</portal>
|
||||
</dialog>
|
||||
</ui>
|
||||
</lcui-app>
|
||||
Reference in New Issue
Block a user