Skip to content

Commit 74db939

Browse files
committed
Add more examples
1 parent b8032fb commit 74db939

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

docs/pages/components/confirm.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,29 @@ layout: component
2121
2222
<form class="form-spacing">
2323
<zn-input label="Name" required></zn-input>
24-
<zn-input label="Email" required></zn-input>
24+
<zn-input label="Email" type="email" required></zn-input>
2525
</form>
2626
</zn-confirm>
2727
```
2828

2929
## Examples
3030

31-
### First Example
31+
### Announcement Confirmations
3232

33-
TODO
33+
```html:preview
34+
<zn-button id="action-trigger">Trigger Confirm Content</zn-button>
35+
<zn-confirm trigger="action-trigger"
36+
variant="announcement"
37+
type="warning"
38+
caption="Changing the status of this item"
39+
content="By changing the status of this item, you will be affecting the status of all related items.">
40+
41+
<form class="form-spacing">
42+
<zn-input label="Name" required></zn-input>
43+
<zn-input label="Email" type="email" required></zn-input>
44+
</form>
45+
</zn-confirm>
46+
```
3447

3548
### Second Example
3649

0 commit comments

Comments
 (0)