Skip to content

Commit

Permalink
update snackbar docs to new content structure
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Dec 24, 2024
1 parent c33461e commit e7f3878
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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")
Expand All @@ -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")
Expand Down

0 comments on commit e7f3878

Please sign in to comment.