FeedbackLiquid Glass
Token Counter
Token usage badge with estimate and limit states. Preview live, copy the source, or install with the CLI into your Next.js project.
Install
npx @intellihelper/cli@latest add token-counterToken badge
About this component
Token Counter is part of Feedback. Token usage badge with estimate and limit states.
Install with npx @intellihelper/cli@latest add token-counter. Files land in your project so you can customize styles, variants, and behavior without a locked package.
Prefer AI-assisted install? Use the agent plugin or the MCP server.
When to use Token Counter
Use when
- Use Token Counter when token usage badge with estimate and limit states.
- Status, progress, toasts, badges, alerts, and spinners.
- Non-blocking confirmation that an action succeeded or failed.
Avoid when
- Permanent page content (use surfaces or typography).
- Errors that block progress without an inline form message.
Accessibility notes
- Toasts and alerts should use appropriate roles (status/alert) without over-notifying.
- Progress indicators need accessible names for screen readers.
Interactive primitives build on accessible patterns (including Radix where applicable). Always verify focus order and contrast on your mesh or product background.
Composition tips
- Use toast for transient success; alert for persistent page-level issues.
- Badges annotate; they should not be the only interactive control.