Skip to content

Commit d3e7b44

Browse files
committed
[Documentation] Move About below Examples in Toast docs
1 parent d2935c5 commit d3e7b44

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/app/views/docs/toast.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)