Skip to content
roguelite labsAnthony Spezzano ↗
Prompt/AbilitySelector

AbilitySelector

Toggleable grid of AI capability chips (Web Search, Code Exec, etc.). Selected chips highlight with an animated checkmark.

Use and inspectUse this as a presentational interface around your own submit, stream, or state handlers. Reset preview only remounts the local example; it does not send a request or connect to a model.Next: inspect the source and wire its callback to a bounded backend action.
AbilitySelectorToggleable grid of AI capability chips (Web Search, Code Exec, etc.). Selected chips highlight with an animated checkmark.
npm install framer-motion
This component requires framer-motion.
PropTypeDefaultDescription
selected*string[]Array of active ability ids
onChange*(abilities: string[]) => voidCalled when an ability is toggled