Skip to content

Commit 8802455

Browse files
Try out multiline and nested dropdowns
1 parent 15c4337 commit 8802455

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

layouts/shortcodes/dropdown.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,30 @@
3838
body="And some content and an icon!"
3939
>}}
4040

41+
{{< dropdown
42+
title="A dropdown with multiple lines of text"
43+
body=`
44+
Snowflakes are our friends
45+
They descend when winter comes
46+
Making white blankets.
47+
`
48+
>}}
49+
50+
{{< dropdown
51+
title="A dropdown inside a dropdown"
52+
icon="fa-solid fa-exclamation-triangle"
53+
color="danger"
54+
body=`
55+
Here is a dropdown again!
56+
57+
{{< dropdown
58+
title="A nested dropdown"
59+
icon="fa-solid fa-bell"
60+
body="And some content!"
61+
>}}
62+
`
63+
>}}
64+
4165
{{< dropdown
4266
title="Open dropdown by default"
4367
icon="fa-solid fa-eye"

0 commit comments

Comments
 (0)