Thinking UI

Tool TogglesPRO

Turn agent tools and permissions on and off with springy switches.

Code

1 file · 102 lines of TypeScriptPRO

Tool Toggles is part of Pro

Get its source, the one-paste agent prompt and all 113 components, for a one-time $99.

Motion notes

  • The thumb travels on the micro spring and stretches slightly while pressed.
  • Track colors come from the toggle tokens, so restyling switches is a token change.
  • Enabled tools tint their icon and pop an “On” badge.

Usage

Example
<ToolToggles tools={tools} defaultValue={{ web: true }} />

Props

PropTypeDefaultDescription
tools{ id, name, description, icon? }[]—Tools to list.
valueRecord<string, boolean>—Controlled state.
onValueChange(value) => void—Called on toggle.