Skip to content

Commit 8da816a

Browse files
Try out multiline and nested dropdowns
1 parent a237e43 commit 8da816a

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

layouts/shortcodes/dropdown.html

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,25 @@
3939
{{< /dropdown >}}
4040

4141
{{< dropdown >}}
42-
title = 'Open dropdown by default'
43-
icon = 'fa-solid fa-eye'
44-
color = 'info'
45-
open = true
46-
body = 'This dropdown is open by default!'
42+
title = "A dropdown inside a dropdown"
43+
icon = "fa-solid fa-exclamation-triangle"
44+
body='''
45+
Here is a dropdown again!
46+
{{< dropdown >}}
47+
title="A nested dropdown"
48+
icon="fa-solid fa-bell"
49+
body="And some content!"
4750
{{< /dropdown >}}
51+
'''
52+
{{< /dropdown >}}
53+
54+
{{< dropdown
55+
title="Open dropdown by default"
56+
icon="fa-solid fa-eye"
57+
color="info"
58+
open="true"
59+
body="This dropdown is open by default!"
60+
>}}
4861

4962
{{< dropdown >}}
5063
title = 'Fade in animation'

0 commit comments

Comments
 (0)