Skip to content
Follow toggle, light
Light
Follow toggle, dark
Dark

Every state

  • Follow toggle, default, light
    Follow toggle, default, dark

    default

  • Follow toggle, hover, light
    Follow toggle, hover, dark

    hover

  • Follow toggle, following, light
    Follow toggle, following, dark

    following

  • Follow toggle, hover-unfollow, light
    Follow toggle, hover-unfollow, dark

    hover-unfollow

  • Follow toggle, focus-unfollow, light
    Follow toggle, focus-unfollow, dark

    focus-unfollow

  • Follow toggle, error, light
    Follow toggle, error, dark

    error

  • Follow toggle, in-profile, light
    Follow toggle, in-profile, dark

    in-profile

Props

PropTypeDefaultWhat it does
namestring"Mara Lindqvist"Who or what is followed, read after the label.
followingbooleanfalseStarting state.
labelstring"Follow"The label at rest and the start of the accessible name.
followingLabelstring"Following"The label once following.
unfollowLabelstring"Unfollow"The label on hover or focus of the following state.
errorTextstring"Couldn't save, try again"Shown and announced when saving fails.
onChange(following: boolean) => Promise<unknown>–Saves the new state; reject to roll back.
errorboolean–Show the error (previews).
classNamestring–Extra classes on the wrapper.

More buttons

All 14
button-04 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans