Skip to content
Like counter, light
Light
Like counter, dark
Dark

Every state

  • Like counter, default, light
    Like counter, default, dark

    default

  • Like counter, liked, light
    Like counter, liked, dark

    liked

  • Like counter, hover, light
    Like counter, hover, dark

    hover

  • Like counter, focus, light
    Like counter, focus, dark

    focus

  • Like counter, error, light
    Like counter, error, dark

    error

  • Like counter, in-post, light
    Like counter, in-post, dark

    in-post

Props

PropTypeDefaultWhat it does
labelstring"Like"The visible word and start of the accessible name.
likedbooleanfalseStarting state.
countnumber1184Starting count, shown short (1.2k).
countNounstring"likes"Said after the full count by screen readers.
errorTextstring"Couldn't save, try again"Shown and announced when saving fails.
onToggle(liked: 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-06 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