File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ def view_template
2727 description : "An opinionated toast component."
2828 )
2929
30+ Heading ( level : 2 ) { "Examples" }
31+ Heading ( level : 3 ) { "Types" }
32+ div ( class : "grid gap-4 sm:grid-cols-2" , data : { controller : "toast-demo" } ) do
33+ EXAMPLES . each { |ex | example_box ( ex ) }
34+ end
35+
3036 Heading ( level : 2 ) { "About" }
3137 p ( class : "text-muted-foreground text-sm leading-relaxed" ) do
3238 plain "Trigger toasts from the server with Turbo Streams or from JavaScript via "
@@ -41,12 +47,6 @@ def view_template
4147 plain "."
4248 end
4349
44- Heading ( level : 2 ) { "Examples" }
45- Heading ( level : 3 ) { "Types" }
46- div ( class : "grid gap-4 sm:grid-cols-2" , data : { controller : "toast-demo" } ) do
47- EXAMPLES . each { |ex | example_box ( ex ) }
48- end
49-
5050 Heading ( level : 2 ) { "Mount" }
5151 div ( class : "rounded-md border bg-muted/30 p-4" ) do
5252 Codeblock ( <<~RUBY , syntax : :ruby )
You can’t perform that action at this time.
0 commit comments