Black Friday Sale 40% Off•Sale end soon

PaceUI

  • Components
  • Blocks
  • Templates
  • Studio
  • Resources
Intro
  • Components
  • Installation
  • MCP
Agents
  • Chat Composer
  • Workflow Board
  • Thinking States
  • Audio Visualizer
  • Task Pipeline
  • Approval Card
  • Tool Calls
    New
  • Model Ability Selector
  • Model Selector
  • Response Writer
  • AI Suggestions
  • Token Counter
UI SDK
  • Sortable List
    New
  • Token Input
    New
Crafts
  • All Crafts
  • Avatar Flight
  • Voice Record
  • Starfield Card
  • Destination Queue
  • Rolling Bento
  • Download Button
  • Cart Stepper
  • Heart Burst
  • Copy Bar
  • Generative Grid
  • Destination Card
  • Magnetic Button
  • Morphing Copy
  • Expanding Search
  • Metric Tracker
  • Tilt Card
  • Animated Stack
Charts
  • Acquisition Funnel
  • Weekly Traffic
  • Customer Growth
  • Financial Performance
  • Model Usage
  • Customer Segments
  • Sales Overview
  • Channel Sales
  • Daily Orders
  • Weekly Attendance
  • Market Trends
  • Portfolio Overview
  • Resource Usage
  • SaaS Subscriptions
  • Database Performance
  • API Traffic
  • Traffic Distribution
  • Spend Allocation
Motion
  • Accordion
  • Alert
  • Calendar
  • Checkbox
  • Collapsible
  • Combobox
  • Context Menu
  • Dropdown Menu
  • Empty
  • Hover Card
  • Input OTP
  • Menubar
  • Navigation Menu
  • Pagination
  • Progress
  • Radio Group
  • Rating
    New
  • Scroll Area
  • Select
  • Sidebar
  • Slider
  • Switch
  • Tabs
  • Tooltip
  • Reveal Text
  • Scramble Text
  • Squash Text
  • Bouncing Text
  • Mouse Wave Text
  • Text Fall Button
  • Spring Button
  • Infinite Scroller
  • Fillable Button
  • Layered Stack
  • Gradient Shadow
  • Profile Peek
  • Flip Reveal
  • Reveal on Scroll
  • Swap
  1. Components
  2. UI SDK
PreviousNext

Token Input

Multi-value token and mention field built with @ui-sdk/react token-input and trigger-menu primitives, animated chips, soft focus ring, and live agent token stream.

Core Behaviors

  • Token Stream Selection: Mixes editable text with atomic chips that move, delete, copy, and undo as single units.
  • Typeahead & Trigger Popup: Typing @, #, or / opens a caret-anchored suggestion list with live filtering while typing and keyboard navigation (ArrowUp/ArrowDown, Enter/Tab, Escape).
  • Animated Chips & Soft Focus Ring: Spring-animated chip enter/exit transitions paired with a subtle focus-within ring.
  • Agent-Friendly Token Stream: Exposes structured segments, tokens, and codec-serialized codecText alongside controller actions (insert, removeToken, updateToken, clear, undo, redo).

API Reference

TokenInput

PropTypeDefaultDescription
valueTokenInputValue—Controlled array of text strings and Token objects.
defaultValueTokenInputValue—Initial uncontrolled token stream value.
onValueChange(value: TokenInputValue, details: TokenInputValueChangeDetails) => void—Callback fired when text or tokens change.
onSubmit(value: TokenInputValue, details: TokenInputSubmitDetails) => void—Callback fired when submitting with Enter or mod+enter.
tokenDeletion"whole" | "select" | "revert""whole"Controls how Backspace and Delete handle adjacent tokens.
renderToken(token: Token) => ReactNode—Custom renderer for each token chip.
controllerTokenInputController—Imperative controller created with createTokenInputController().

TokenInputTriggerMenu

PropTypeDefaultDescription
triggersTriggerDefinition[]—Trigger characters (@, #, /), token types, and suggestion items.
onSelect(value: T, details: TriggerMenuSelectDetails<T>) => void—Callback fired when a suggestion is chosen.
controllerTriggerMenuController—Imperative controller created with createTriggerMenuController().
Sortable List

PaceUI

Animated blocks, components, and templates for Next.js and TanStack Start. Built with Motion and shadcn - clean code you own.

GitHubTwitterDiscord

Products

BlocksComponentsTemplatesCraftsTanStack ChartsMCP ServerStarter KitsStyleX Components

Resources

DocumentationMotion ComponentsGSAP AnimationsNative AIBlogChangelog

Pricing & Account

PricingManage AccountLicensesAPI KeysAffiliate Program

Company

Contact UsDiscord CommunityPrivacy PolicyTerms of Service

© 2026 PaceUI. All rights reserved. Built by indie developer, Denish

PACEUI

Task Composer

Snapshot
Initialized empty token composer