80 Primitives
Home/Components/Selection Actions
AI & AgentsAI & Agents

Selection Actions

Highlight a passage and hand it to the agent to rewrite.

Interactive Live Preview

Component Props & Interface

Type-safe React 19 props supported by Selection Actions.

Prop NameTypeDefaultDescription
classNamestringundefinedOptional custom CSS styling classes
variantstring'default'Visual variant theme
onAction() => voidundefinedInteraction trigger callback
⌨ Keyboard Navigation

Fully navigable via Tab and Space/Enter. Supports ARIA live region updates for AI streaming states.

📱 Touch & Mobile Gestures

Touch-optimized event handling with hardware acceleration on mobile iOS Safari and Chrome Android.

⚡ Reduced Motion

Respects prefers-reduced-motion with instant CSS state swaps and disabled infinite loops.