

Every state


default


liked


hover


focus


error


in-post
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| label | string | "Like" | The visible word and start of the accessible name. |
| liked | boolean | false | Starting state. |
| count | number | 1184 | Starting count, shown short (1.2k). |
| countNoun | string | "likes" | Said after the full count by screen readers. |
| errorText | string | "Couldn't save, try again" | Shown and announced when saving fails. |
| onToggle | (liked: boolean) => Promise<unknown> | – | Saves the new state; reject to roll back. |
| error | boolean | – | Show the error (previews). |
| className | string | – | Extra classes on the wrapper. |
More buttons
All 14button-06 is in UI ProGet UI Pro, €199


