

Every state


default


hover


following


hover-unfollow


focus-unfollow


error


in-profile
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| name | string | "Mara Lindqvist" | Who or what is followed, read after the label. |
| following | boolean | false | Starting state. |
| label | string | "Follow" | The label at rest and the start of the accessible name. |
| followingLabel | string | "Following" | The label once following. |
| unfollowLabel | string | "Unfollow" | The label on hover or focus of the following state. |
| errorText | string | "Couldn't save, try again" | Shown and announced when saving fails. |
| onChange | (following: 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-04 is in UI ProGet UI Pro, €199


