diff --git a/docs/content/2-widgets/2-containers/snackbars.md b/docs/content/snackbar.md similarity index 74% rename from docs/content/2-widgets/2-containers/snackbars.md rename to docs/content/snackbar.md index 33af5fbd56..d7f8e64996 100644 --- a/docs/content/2-widgets/2-containers/snackbars.md +++ b/docs/content/snackbar.md @@ -1,6 +1,12 @@ -Cogent Core provides customizable snackbars for displaying temporary information to the user. ++++ +Categories = ["Widgets"] ++++ -You can make a snackbar with a text message: +A **snackbar** displays temporary information to users. + +## Simple + +You can make a snackbar with a [[text]] message: ```Go bt := core.NewButton(b).SetText("Message") @@ -18,7 +24,9 @@ bt.OnClick(func(e events.Event) { }) ``` -You can make a custom snackbar with a button and an icon: +## Custom + +You can make a custom snackbar with a [[button]] and/or [[icon]]: ```Go bt := core.NewButton(b).SetText("Custom")