Skip to main content

Clickable

Use Clickable to make any content interactive and accessible. Provides consistent click behavior.

boolean

Disables the clickable, meaning it cannot be clicked or receive focus.

In this state, onClick will not fire. If the click event originates from a child element, the event will immediately stop propagating from this element.

However, items within the clickable can still receive focus and be interacted with.

This has no impact on the visual state by default, but developers are encouraged to style the clickable accordingly.

Was this section helpful?

(event: <"s-divider">) => void
Was this section helpful?

Code

<s-clickable>
<s-text>Click me</s-text>
</s-clickable>

Preview