Skip to content

Add Clickable and ClickableContainer primitives (+ useClickable hook)#3711

Open
Prajwalraut29 wants to merge 1 commit into
facebook:mainfrom
Prajwalraut29:clickable-primitives
Open

Add Clickable and ClickableContainer primitives (+ useClickable hook)#3711
Prajwalraut29 wants to merge 1 commit into
facebook:mainfrom
Prajwalraut29:clickable-primitives

Conversation

@Prajwalraut29

Copy link
Copy Markdown

Three generic interactivity primitives — useClickable (hook, returns spreadable a11y + handlers), (button/link wrapper with hover overlay, no padding), and (surface with safe nested interactives via hidden sr-only element). Builds on existing useClickableContainer and useInteractiveRole hooks. Reuses ClickableCard's overlay pattern (::after, color-mix). Resolves the "make this element a button" pattern currently hand-rolled across Token, Item, Thumbnail, and other components.

@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

@Prajwalraut29 is attempting to deploy a commit to the Meta Open Source Team on Vercel.

A member of the Team first needs to authorize it.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 9, 2026
@Prajwalraut29 Prajwalraut29 changed the title Add Clickable and ClickableContainer primitives Add Clickable and ClickableContainer primitives (+ useClickable hook) Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant