Skip to main content

Pressable

The base of every tappable control in the kit. It can fire a haptic, is reachable by keyboard and TV remote (with a focus ring), and shows a press animation. It renders a button and accepts all its attributes. The pressed look is timed the way the platforms time it. Outside anything scrollable it shows at once. Inside a scroller, a touch waits about 150 ms on iOS and 100 ms on Android before showing it, so a touch that turns into a scroll never lights the rows it crosses. A tap quicker than that still flashes briefly. On Android a touch also spreads a Material ripple from the finger instead of shrinking the control. Every kit control gets this timing, and so does any button, link or role="button" of your own. Style your own pressed state with [data-pressed="true"] instead of :active, which lights up as soon as the finger lands. A clickable div or span needs a data-press attribute to get it. On iOS, a button without a class (one styled only inline) dims while pressed, like a system button. Add data-no-ripple to an element that should not ripple.
'light' | 'medium' | 'heavy' | false
default:"false"
Haptic when the press lands (on click, so a touch that becomes a scroll stays silent). Off by default, as platform buttons don’t buzz on a plain tap; use it for presses you should feel, like a like or a send.
boolean
Take focus first when its screen or overlay opens (TV and keyboard).

Button

'primary' | 'secondary' | 'outline' | 'ghost' | 'danger'
default:"'primary'"
Visual style. Colors come from theme tokens.
'sm' | 'md' | 'lg'
default:"'md'"
Height follows control.heightSm, height and heightLg.
boolean
Fill the container’s width.
boolean
Replace the label with a spinner and disable the button.
ReactNode
Icons beside the label.
Also accepts every Pressable prop. An anchor with Pressable behavior: focusable, remote-reachable, with an optional haptic.
string
required
Destination.
boolean
Open in a new tab with a safe rel.
'text' | 'plain'
default:"'text'"
text is an inline accent link; plain wraps a card or row with no link styling.
'light' | 'medium' | 'heavy' | false
default:"false"
Haptic when the tap lands.

Chip

A selectable pill, for filters and tags.
boolean
Selected styling.
Also accepts every Pressable prop.

SignInButton

The hand-off to sign-in, as a link rather than a button, since signing in is a navigation. The URL comes from the SDK’s loginUrl.
string
Where to come back to. Defaults to the current page without its query.
string
A complete sign-in link you built yourself. Wins over redirectUrl.
ReactNode
Button text. Defaults to “Continue with CSKN ID”, in English or Turkish.
boolean
default:"true"
Show the trailing arrow.
boolean
Keep only the layout and drop the button styling, to draw it in your own colors.
Also accepts every <a> attribute except href.

FollowButton

Follow, unfollow, and the pending state for accounts that approve their followers. Unfollowing also withdraws a pending request, so one tap undoes either. It uses the SDK’s follow API and refreshes the SDK’s follow queries for you.
string
The account’s user id. Renders nothing without one.
'sm' | 'md' | 'lg'
Button size.
ButtonVariant
Style of the “Following” and “Requested” states.
({ isFollowing, isRequested }) => void
After a follow, unfollow or request goes through. Use it to refresh your own queries.
(error: unknown) => void
A follow call failed.
object
Text overrides: follow, following, requested, requestFollow.