RadiusToken

A token variant with a spline icon for documenting border radius values.

Overview

RadiusToken is a specialized variant of the Token component that adds a visual icon to help distinguish corner radius values while keeping the tooltip for the exact measurement.

This component uses the dimension type from the W3C Design Tokens specification (§8.2), as border radius values are distance measurements.

Installation

npx shadcn add @tokenui/radius-token

Usage

Use RadiusToken for border radius values:

API Reference

RadiusToken

Prop

Type