Skip to content

Component contracts

Heading

Text children; level sets structure, visualLevel sets appearance. Truncate one line with title; avoid labels and navigation.

children · level 1–4 · visualLevel 1–4

Foundations · fill: The parent sets the line width; one line truncates with a title. Do not stretch its type scale.

Usage example
import { Heading, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example() {
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <Heading level={2} visualLevel={3}>Title</Heading>
    </div>
  </>;
}
Interactive examples

Heading

Text children; level sets structure, visualLevel sets appearance. Truncate one line with title; avoid labels and navigation.

Layout responsibility · Sizing: fill

The parent sets the line width; one line truncates with a title. Do not stretch its type scale.

Standard examples: 02-typography · L220

States and variants

default

Quarterly review

levels

Quarterly review

Quarterly review

Quarterly review

Quarterly review

truncated

Quarterly review · Quarterly review · Quarterly review · Quarterly review · Quarterly review · Quarterly review · Quarterly review · Quarterly review · Quarterly review · Quarterly review · Quarterly review · Quarterly review · Quarterly review · Quarterly review · Quarterly review · Quarterly review · Quarterly review · Quarterly review · Quarterly review · Quarterly review ·

Open a state for interaction and debugging

Requirements, use and behavior

Heading level 1–4 · visualLevel 1–4 一句话:标签级别由 level 定,外观由 visualLevel 定,1 至 3 级衬线 400、4 级怪诞体 600,一律单行截断。 须提供 :文本 children; level (默认 2);需要和文档结构不同的外观时给 visualLevel 。 容器 :由页头、区段、卡片提供宽度;标题自己不折行,装不下截断加 title。 用 :页标题 h1/2、区段 h3、卡片与设置行 h4。 不用 :表头与指标标签(用 caps 样式);按钮与导航项文字。

Interactive examples · Typography

Text

Supply children and optional size, tone or variant. Use Text for prose. Headings and table cells use their own styles. Strong uses primary ink at weight 600.

children · size body|reading|meta|caption · tone default|strong · variant numeral|caps

Foundations · fill: The parent sets prose width; text wraps. Numeral and caps retain their own type roles; table cells own their typography.

Usage example
import { Text, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example() {
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <Text size="meta" tone="strong">Details</Text>
    </div>
  </>;
}
Interactive examples

Text

Supply children and optional size, tone or variant. Use Text for prose. Headings and table cells use their own styles. Strong uses primary ink at weight 600.

Layout responsibility · Sizing: fill

The parent sets prose width; text wraps. Numeral and caps retain their own type roles; table cells own their typography.

Standard examples: 02-typography · L221

States and variants

default

The project has 12 members and 3 pending invitations. Invitations arrive within 7 days.

sizes

The project has 12 members and 3 pending invitations. Invitations arrive within 7 days.

The project has 12 members and 3 pending invitations. Invitations arrive within 7 days.

The project has 12 members and 3 pending invitations. Invitations arrive within 7 days.

The project has 12 members and 3 pending invitations. Invitations arrive within 7 days.

strong

The project has 12 members and 3 pending invitations. Invitations arrive within 7 days.

numeral

128Seats

caps

Status

Open a state for interaction and debugging

Requirements, use and behavior

Text size body | reading | meta | caption · tone default | strong · variant numeral | caps 一句话:段落文本,13/20 次墨为默认;strong 用一级墨、字重 600,说明文字用三级墨。 须提供 :children;可选 size 、 tone 、 variant。 容器 :可折行,由父级定宽;表格单元内不用 Text,用单元自身样式。 用 :说明、帮助、空状态、通知正文。 不用 :标题、标签、编号。 numeral · Text 的 variant 值 一句话:数字用 Source Serif 4 300 等宽数字,单位进 small 槽缩小拉距;只给指标与金额。 须提供 :数值文本;单位放在 unit 槽;行内用 inl(16/20 400)。 用 :指标、金额、席位、计数。 不用 :编号与时间(mono)、表格里的普通数字(正文)。 caps · Text 的 variant 值 一句话:11/16 500、字距 .14em、三级墨;区段编号前缀用等宽。 须提供 :短标签文本;可选编号前缀。 用 :区段标题、表头、指标标签、页头副标。 不用 :可点击元素的文字;超过四个词的句子。

Interactive examples · Typography

Highlight

Supply text and query. Empty query preserves text; matches change only the wash, never typography. Use search matches, not emphasis or status.

text · query · caseSensitive · markClassName

Foundations · content: Inline text follows its enclosing line and may wrap; highlighting changes no container width.

Usage example
import { Highlight, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example() {
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <Highlight text="PRJ-2026" query="2026"/>
    </div>
  </>;
}
Interactive examples

Highlight

Supply text and query. Empty query preserves text; matches change only the wash, never typography. Use search matches, not emphasis or status.

Layout responsibility · Sizing: content

Inline text follows its enclosing line and may wrap; highlighting changes no container width.

Standard examples: 02-typography · L222

States and variants

default

Quarterly review · PRJ-2026

empty

Quarterly review · PRJ-2026

case-sensitive

Quarterly review · PRJ-2026

Open a state for interaction and debugging

Requirements, use and behavior

Highlight text · query · caseSensitive · markClassName 一句话:把 query 在 text 里的命中包成 mark,只加 8% 青洗底;字重、字距、字号、内距全部不变,命中前后的排版与未命中时逐像素相同。 须提供 : text 字符串与 query ;query 为空时原样输出。 容器 :行内;在选中行与表格单元里同一规则,不另配色。 用 :搜索结果、过滤命中、命令面板。 不用 :强调语气(用 strong);状态(用点加字)。

Interactive examples · Typography

Icon

Choose a roster name; 14/16/20 sizes keep a 1.25 stroke. Decorative by default; meaningful icons need a name. Never substitute a brand or illustration.

name (icon catalog) · size sm|md|lg|number · decorative · title / aria-label

Foundations · fixed: The icon size token fixes the square. A meaningful icon needs a name; it is not a fill-width control.

Usage example
import { Icon, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example() {
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <Icon name="settings" size="md" title="Settings"/>
    </div>
  </>;
}
Interactive examples

Icon

Choose a roster name; 14/16/20 sizes keep a 1.25 stroke. Decorative by default; meaningful icons need a name. Never substitute a brand or illustration.

Layout responsibility · Sizing: fixed

The icon size token fixes the square. A meaningful icon needs a name; it is not a fill-width control.

Standard examples: 03-icons · L131

States and variants

default

sizes

meaningful

Open a state for interaction and debugging

Requirements, use and behavior

Icon name · size sm|md|lg|number · decorative · title 一句话:按名册名字取一枚 20 格 1.25px 描边的线性图标,颜色继承文字色,默认装饰性(aria-hidden)。 须提供 : name (tcrnIconNames 之一);独立表意时给 title 或 aria-label ,组件自动改为 role="img"。 尺寸 :sm 14、md 16、lg 20 或数字;描边恒 1.25px,不随尺寸变。 保持默认 strokeWidth。 容器 :由按钮、导航项、输入框、说明文字提供对齐(inline-flex 居中)。 用 :导航、按钮、工具栏、状态提示、空状态标题前。 不用 :当状态色块(状态用 6px 点加文字);当品牌标;当插画。

Interactive examples · Icons

ProductLockup

Pass productId and locale for registered wording and taglines. Full, rail and first-line lockups share the mark. TCRN wordmark suffixes use their product’s deep color.

productId · locale (registered tagline) · first line / full lockup / 22px scale

Foundations · mixed: Registered mark and scale fix the graphic; copy uses remaining parent space and truncates where specified. Keep the complete lockup geometry.

Usage example
import { ProductLockup, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example() {
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <ProductLockup productId="tms" locale="en" scale="rail"/>
    </div>
  </>;
}
Interactive examples

ProductLockup

Pass productId and locale for registered wording and taglines. Full, rail and first-line lockups share the mark. TCRN wordmark suffixes use their product’s deep color.

Layout responsibility · Sizing: mixed

Registered mark and scale fix the graphic; copy uses remaining parent space and truncates where specified. Keep the complete lockup geometry.

Standard examples: 04-brand · L35

States and variants

default

products

rail

first-line

Open a state for interaction and debugging

Requirements, use and behavior

锁定块与侧栏尺度 TCRN 产品字标 Hanken Grotesk 600,「TCRN」墨色、后缀使用文字角色色(TMS #2c63c8、Design System #4b59be);Einzbern 与 Mana Orchestrate 是完整名称,Source Serif 4 墨色加 by TCRN TCRN TMS 艺人管理系统 Einzbern 项目记忆引擎 by TCRN Mana Orchestrate 项目记忆助手 by TCRN TCRN Design System 设计系统 TCRN TMS 艺人管理系统 Einzbern 项目记忆引擎 Mana Orchestrate 项目记忆助手 TCRN Design System 设计系统 标语 五语按 registry 机制,字标永远拉丁;产品名与标语不提任何宿主名 产品 zh-CN en ja ko fr TCRN TMS 艺人管理系统 Talent Management System タレントマネジメントシステム 탤런트 관리 시스템 Système de gestion des talents Einzbern 项目记忆引擎 Project memory engine プロジェクト記憶エンジン 프로젝트 메모리 엔진 Moteur de mémoire de projet Mana Orchestrate 项目记忆助手 Project memory assistant プロジェクト記憶アシスタント 프로젝트 메모리 어시스턴트 Assistant mémoire de projet TCRN Design System 设计系统 Design System デザインシステム 디자인 시스템 Système de design

Interactive examples · Brand guidelines

Button

Provide visible children and a disabledReason when disabled. One action per button; danger uses red ink. Use LinkButton for navigation.

children · variant primary|secondary|quiet|danger · size sm|md|lg · disabledReason

Actions · content: Text, optional icon, token gap and two token insets determine width. Cap at the parent width and ellipsize long text; never inherit grid stretch or set a fixed width.

Usage example
import { Button, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example() {
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", justifyItems: "start", gap: "var(--tcrn-space-2)" }}>
      <Button disabled disabledReason="Select an item">Export</Button>
    </div>
  </>;
}
Interactive examples

Button

Provide visible children and a disabledReason when disabled. One action per button; danger uses red ink. Use LinkButton for navigation.

Layout responsibility · Sizing: content

Text, optional icon, token gap and two token insets determine width. Cap at the parent width and ellipsize long text; never inherit grid stretch or set a fixed width.

Standard examples: 05-actions · L112

States and variants

default

variants

sizes

focus

disabled

loading

selected

Open a state for interaction and debugging

Requirements, use and behavior

Button variant primary|secondary|quiet|danger · size sm|md|lg · disabledReason 一句话:一次动作一个按钮;主按钮每屏最多一个,危险按钮只放在裁决位置,用红字不用红底。 须提供 :children 文字(可带 Icon); disabled 时必须给 disabledReason (变成 title 与 sr 文本); 容器 :页头动作区、表单页脚、对话框页脚、工具栏;按钮自身单行,容器负责换行策略。 不用 :导航(用 NavItem / Tabs);切换主题或语言(用壳层专用件);表格里的行内链接(用 LinkButton quiet)。

Interactive examples · Actions

IconButton

ariaLabel is required; use a roster icon. Without children it is square; optional visible children make it a labelled action. Avoid ambiguous or sole primary actions.

ariaLabel · iconName|icon · children (optional visible label) · size sm|md|lg · variant · disabledReason · loading

Actions · mixed: An unlabelled button is a token-height square. A visible label uses content width and token insets; an accessible name alone does not widen the square.

Usage example
import { IconButton, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example() {
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", justifyItems: "start", gap: "var(--tcrn-space-2)" }}>
      <IconButton ariaLabel="Settings" iconName="settings">Settings</IconButton>
    </div>
  </>;
}
Interactive examples

IconButton

ariaLabel is required; use a roster icon. Without children it is square; optional visible children make it a labelled action. Avoid ambiguous or sole primary actions.

Layout responsibility · Sizing: mixed

An unlabelled button is a token-height square. A visible label uses content width and token insets; an accessible name alone does not widen the square.

Standard examples: 05-actions · L113

States and variants

default

labelled

sizes

focus

disabled

loading

selected

Open a state for interaction and debugging

Requirements, use and behavior

IconButton ariaLabel(必填)· iconName | icon · 其余同 Button 一句话:只有图标的方形按钮,必须有可见名字以外的名字。 须提供 : ariaLabel ; iconName 取名册;可选 children 作可见标签(则不再是方形)。 用 :工具栏、表格行尾、关闭与折叠。 不用 :唯一的主动作;含义不明的图标(info、settings 之外的隐喻)。

Interactive examples · Actions

LinkButton

Provide href; external links include external-link and rel. This navigates and has no loading/disabled API; requests and submissions use Button.

href · variant primary|secondary|quiet

Actions · content: Navigation text and optional icon determine width with token insets. Long labels ellipsize at the parent limit; do not fill a grid track.

Usage example
import { LinkButton, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example() {
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", justifyItems: "start", gap: "var(--tcrn-space-2)" }}>
      <LinkButton href="/invoices" variant="quiet">Invoices</LinkButton>
    </div>
  </>;
}
Interactive examples

LinkButton

Provide href; external links include external-link and rel. This navigates and has no loading/disabled API; requests and submissions use Button.

Layout responsibility · Sizing: content

Navigation text and optional icon determine width with token insets. Long labels ellipsize at the parent limit; do not fill a grid track.

Standard examples: 05-actions · L114

States and variants

Open a state for interaction and debugging

Requirements, use and behavior

LinkButton href · variant primary|secondary|quiet 一句话:长得像按钮的链接,用于导航到另一页;同一对表,没有 loading 与 disabled。 须提供 : href ;外链加 external-link 图标与 rel。 不用 :触发请求或提交(用 Button);正文里的链接(用 Text 的 link 样式)。

Interactive examples · Actions

ClipboardCopyButton

Provide text and ariaLabel; React keeps sensitive payloads out of DOM. Five visible feedback states reset after two seconds. Avoid a primary action or silent copying.

text · ariaLabel · locale · *Label · resetDelayMs · onCopyStateChange

Actions · content: Uses the real Button geometry. Copy feedback changes state/label, never a parent-imposed full width; test the browser clipboard separately.

Usage example
import { ClipboardCopyButton, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example() {
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", justifyItems: "start", gap: "var(--tcrn-space-2)" }}>
      <ClipboardCopyButton text="PRJ-2026-0412" ariaLabel="Copy" locale="en"/>
    </div>
  </>;
}
Interactive examples

ClipboardCopyButton

Provide text and ariaLabel; React keeps sensitive payloads out of DOM. Five visible feedback states reset after two seconds. Avoid a primary action or silent copying.

Layout responsibility · Sizing: content

Uses the real Button geometry. Copy feedback changes state/label, never a parent-imposed full width; test the browser clipboard separately.

Standard examples: 05-actions · L115

States and variants

default

Open a state for interaction and debugging

Requirements, use and behavior

ClipboardCopyButton text · ariaLabel · locale · *Label 覆盖 · resetDelayMs · onCopyStateChange 一句话:复制一段文本,五种状态在按钮文字里直接说出来,2 秒后回到 idle。 须提供 : text 与 ariaLabel ;敏感值走 React 版本(不写进 DOM);静态页用 mountStaticClipboardCopyButton 。 外形 :默认 secondary sm;行内可用 quiet sm;idle 带 copy 图标,copied 用 check,failed 用 alert-triangle。 不用 :作为主按钮;复制整段多行内容时不给反馈文字。

Interactive examples · Actions

ButtonGroup

Name the group and each of two to five Button/IconButton children. Use secondary or quiet; children own aria-pressed. Avoid navigation and mixed primary actions.

ariaLabel · size · variant secondary|quiet · 2–5 Button / IconButton children

Actions · content: The frame encloses members plus their 1px joins, in secondary and quiet variants. On a narrow parent, members may shrink and ellipsize; keep the joined row and token insets.

Usage example
import { ButtonGroup, Button, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example() {
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", justifyItems: "start", gap: "var(--tcrn-space-2)" }}>
      <ButtonGroup ariaLabel="Filter" size="md"><Button aria-pressed="true">All</Button><Button>Open</Button></ButtonGroup>
    </div>
  </>;
}
Interactive examples

ButtonGroup

Name the group and each of two to five Button/IconButton children. Use secondary or quiet; children own aria-pressed. Avoid navigation and mixed primary actions.

Layout responsibility · Sizing: content

The frame encloses members plus their 1px joins, in secondary and quiet variants. On a narrow parent, members may shrink and ellipsize; keep the joined row and token insets.

Standard examples: 05-actions · L116

States and variants

default

quiet

sizes

five-actions

Open a state for interaction and debugging

Requirements, use and behavior

ButtonGroup · ariaLabel · size · variant secondary|quiet · children Button / IconButton 一句话:把两到五个同类动作连成一条,共用轮廓与分隔;单选用子项 aria-pressed,组只管几何与可及性。 须提供 : ariaLabel (role=group 的名字);子项各自的 label 或 ariaLabel。 容器 :工具栏、页头;组内焦点环抬到最上层。 不用 :视图页签与导航(用 Tabs / SegmentedNav);超过五项(用 Select 或 Menu);混放主按钮。

Interactive examples · Actions

Input

Name the text field; disabled requires a reason, error requires aria-invalid plus described error. Use dedicated search, number or closed-choice controls for those values.

native attributes · label / aria-label · disabledReason · aria-invalid / aria-describedby

Inputs and selection · fill: The field container supplies the available width; the control fills it. A short value does not shrink the field. Labels/help/errors wrap outside the control.

Usage example
import { Input, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

// Before using this template, inspect the target project's existing form-column
// token, layout rule or container. Bind its class below and record its source in
// declaration.fieldColumns. Do not copy the documentation-only 28rem context.
// If no host rule exists, stop for the host layout decision; never invent a DS token.
export function Example({ formColumnClassName }: { formColumnClassName: string }) {
  if (!formColumnClassName) throw new Error("HOST_FORM_COLUMN_DECISION_REQUIRED");
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" className={formColumnClassName} data-tcrn-field-column="" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <Input aria-label="Name" aria-invalid="true" aria-describedby="error"/>
      <p id="error">Name is required.</p>
    </div>
  </>;
}
Interactive examples

Input

Name the text field; disabled requires a reason, error requires aria-invalid plus described error. Use dedicated search, number or closed-choice controls for those values.

Layout responsibility · Sizing: fill

The field container supplies the available width; the control fills it. A short value does not shrink the field. Labels/help/errors wrap outside the control.

Standard examples: 06-inputs · L124

States and variants

default

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

filled

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

focus

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

readonly

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

disabled

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

Unavailable in this example

error

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

Email address is incomplete

error-focus

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

Email address is incomplete

Open a state for interaction and debugging

Requirements, use and behavior

Input · Textarea 原生属性 · disabledReason 一句话:单行与多行文本,一张纸上的一格;禁用时必须说明原因。 须提供 :label(同页 for/id 或 aria-label); disabled 时给 disabledReason ;错误时 aria-invalid 加 aria-describedby 指向错误文案。 容器 :Field或表单网格定宽;控件自身 width 100%。 不用 :搜索(用 SearchInput);数值(用 NumberInput);封闭集合(用 Select)。

Interactive examples · Inputs

Textarea

Name the multiline field; retain native attributes, disabled reason and error relationships. Parent sets width; use dedicated search or numeric controls for those roles.

native attributes · label / aria-label · disabledReason · aria-invalid / aria-describedby

Inputs and selection · fill: The parent sets width, content wraps and native vertical resize remains available. It does not use action content-width rules.

Usage example
import { Textarea, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

// Before using this template, inspect the target project's existing form-column
// token, layout rule or container. Bind its class below and record its source in
// declaration.fieldColumns. Do not copy the documentation-only 28rem context.
// If no host rule exists, stop for the host layout decision; never invent a DS token.
export function Example({ formColumnClassName }: { formColumnClassName: string }) {
  if (!formColumnClassName) throw new Error("HOST_FORM_COLUMN_DECISION_REQUIRED");
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" className={formColumnClassName} data-tcrn-field-column="" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <Textarea aria-label="Notes"/>
    </div>
  </>;
}
Interactive examples

Textarea

Name the multiline field; retain native attributes, disabled reason and error relationships. Parent sets width; use dedicated search or numeric controls for those roles.

Layout responsibility · Sizing: fill

The parent sets width, content wraps and native vertical resize remains available. It does not use action content-width rules.

Standard examples: 06-inputs · L124

States and variants

default

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

filled

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

focus

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

readonly

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

disabled

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

Unavailable in this example

error

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

Email address is incomplete

Open a state for interaction and debugging

Requirements, use and behavior

Input · Textarea 原生属性 · disabledReason 一句话:单行与多行文本,一张纸上的一格;禁用时必须说明原因。 须提供 :label(同页 for/id 或 aria-label); disabled 时给 disabledReason ;错误时 aria-invalid 加 aria-describedby 指向错误文案。 容器 :Field或表单网格定宽;控件自身 width 100%。 不用 :搜索(用 SearchInput);数值(用 NumberInput);封闭集合(用 Select)。

Interactive examples · Inputs

SearchInput

Provide a name; auto shortcut exposes platform text and aria-keyshortcuts, fill takes the container width. This filters targets, not values submitted in a form.

label / aria-label · shortcut auto|string|false · fill

Inputs and selection · fill: The wrapper fills its field; internal grid reserves icon, token insets and shortcut. Narrow fields must retain a usable text area and shortcut behavior.

Usage example
import { SearchInput, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

// Before using this template, inspect the target project's existing form-column
// token, layout rule or container. Bind its class below and record its source in
// declaration.fieldColumns. Do not copy the documentation-only 28rem context.
// If no host rule exists, stop for the host layout decision; never invent a DS token.
export function Example({ formColumnClassName }: { formColumnClassName: string }) {
  if (!formColumnClassName) throw new Error("HOST_FORM_COLUMN_DECISION_REQUIRED");
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" className={formColumnClassName} data-tcrn-field-column="" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <SearchInput aria-label="Find" shortcut="auto"/>
    </div>
  </>;
}
Interactive examples

SearchInput

Provide a name; auto shortcut exposes platform text and aria-keyshortcuts, fill takes the container width. This filters targets, not values submitted in a form.

Layout responsibility · Sizing: fill

The wrapper fills its field; internal grid reserves icon, token insets and shortcut. Narrow fields must retain a usable text area and shortcut behavior.

Standard examples: 06-inputs · L125

States and variants

default

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

filled

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

focus

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

readonly

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

disabled

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

Unavailable in this example

error

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

Email address is incomplete

Open a state for interaction and debugging

Requirements, use and behavior

SearchInput shortcut auto|string|false · fill 一句话:找东西的工具,不是表单字段:墨洗无边框,右侧快捷键,focus 回到纸底。 须提供 :aria-label 或可见 label; shortcut="auto" 显示 Ctrl K / ⌘K 并写 aria-keyshortcuts; fill 撑满容器。 用 :菜单面板与下拉顶部、列表上方过滤、命令面板入口。 不用 :收集要提交的值;替代 Select 的筛选。

Interactive examples · Inputs

SuggestInput

Provide deduplicated string suggestions. Native datalist helps an open string without restricting free typing; closed domains use Select/MultiSelect.

suggestions · native Input attributes · open string value

Inputs and selection · fill: The open-value input fills its field. Native suggestion presentation is browser-owned; verify long suggestions in the target browser.

Usage example
import { SuggestInput, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

// Before using this template, inspect the target project's existing form-column
// token, layout rule or container. Bind its class below and record its source in
// declaration.fieldColumns. Do not copy the documentation-only 28rem context.
// If no host rule exists, stop for the host layout decision; never invent a DS token.
export function Example({ formColumnClassName }: { formColumnClassName: string }) {
  if (!formColumnClassName) throw new Error("HOST_FORM_COLUMN_DECISION_REQUIRED");
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" className={formColumnClassName} data-tcrn-field-column="" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <SuggestInput aria-label="Project" suggestions={["Q3", "Q4"]}/>
    </div>
  </>;
}
Interactive examples

SuggestInput

Provide deduplicated string suggestions. Native datalist helps an open string without restricting free typing; closed domains use Select/MultiSelect.

Layout responsibility · Sizing: fill

The open-value input fills its field. Native suggestion presentation is browser-owned; verify long suggestions in the target browser.

Standard examples: 06-inputs · L126

States and variants

default

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

filled

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

readonly

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

disabled

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

Unavailable in this example

error

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

Email address is incomplete

Open a state for interaction and debugging

Requirements, use and behavior

SuggestInput suggestions · 其余同 Input 一句话:开放字符串加建议,建议不限制输入(data-choice-value-mode=open)。 须提供 : suggestions 字符串数组(自动去重)。 不用 :封闭值域(用 Select / MultiSelect)。

Interactive examples · Inputs

Select

Provide options; a placeholder option is disabled. Preserve native single choice and disabled reasons. Avoid navigation, language menus and multiple values.

options[{value,label,disabled}] · disabledReason

Inputs and selection · fill: The closed-value control fills its field. Selected text and native popup are browser-owned; the parent supplies enough width for translated labels.

Usage example
import { Select, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

// Before using this template, inspect the target project's existing form-column
// token, layout rule or container. Bind its class below and record its source in
// declaration.fieldColumns. Do not copy the documentation-only 28rem context.
// If no host rule exists, stop for the host layout decision; never invent a DS token.
export function Example({ formColumnClassName }: { formColumnClassName: string }) {
  if (!formColumnClassName) throw new Error("HOST_FORM_COLUMN_DECISION_REQUIRED");
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" className={formColumnClassName} data-tcrn-field-column="" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <Select aria-label="Status" options={[{value:"",label:"Choose",disabled:true},{value:"active",label:"Active"}]}/>
    </div>
  </>;
}
Interactive examples

Select

Provide options; a placeholder option is disabled. Preserve native single choice and disabled reasons. Avoid navigation, language menus and multiple values.

Layout responsibility · Sizing: fill

The closed-value control fills its field. Selected text and native popup are browser-owned; the parent supplies enough width for translated labels.

Standard examples: 06-inputs · L127

States and variants

default

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

focus

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

disabled

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

Unavailable in this example

error

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

Choose a valid option

Open a state for interaction and debugging

Requirements, use and behavior

Select options[{value,label,disabled}] · disabledReason 一句话:封闭单值,原生 select;超过两项或二值放不下时由 SettingChoice 落到它。 须提供 : options ;首项若是占位须 disabled。 不用 :导航与语言菜单(用壳层专用件);多值(用 MultiSelect)。

Interactive examples · Inputs

MultiSelect

Provide a closed option set and presentation-specific empty/clear labels. Dropdown uses a body listbox and selected summary; required collections keep an enabled selection.

options · value/defaultValue · onChange · presentation native|dropdown|checkboxes · emptySelectionLabel · clearSelectionLabel

Inputs and selection · fill: Dropdown/native/checkbox presentations fill their parent; summaries ellipsize, option labels wrap and the popup stays in the viewport.

Usage example
import { MultiSelect, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

// Before using this template, inspect the target project's existing form-column
// token, layout rule or container. Bind its class below and record its source in
// declaration.fieldColumns. Do not copy the documentation-only 28rem context.
// If no host rule exists, stop for the host layout decision; never invent a DS token.
export function Example({ formColumnClassName }: { formColumnClassName: string }) {
  if (!formColumnClassName) throw new Error("HOST_FORM_COLUMN_DECISION_REQUIRED");
  const options = [{ value: "review", label: "Review" }, { value: "release", label: "Release" }];
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" className={formColumnClassName} data-tcrn-field-column="" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <MultiSelect aria-label="Projects" options={options} presentation="dropdown" emptySelectionLabel="Choose"/>
    </div>
  </>;
}
Interactive examples

MultiSelect

Provide a closed option set and presentation-specific empty/clear labels. Dropdown uses a body listbox and selected summary; required collections keep an enabled selection.

Layout responsibility · Sizing: fill

Dropdown/native/checkbox presentations fill their parent; summaries ellipsize, option labels wrap and the popup stays in the viewport.

Standard examples: 06-inputs · L128

States and variants

default

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

native

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

checkboxes

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

empty

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

disabled

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

Unavailable in this example

error

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

Email address is incomplete

Open a state for interaction and debugging

Requirements, use and behavior

MultiSelect options · value/defaultValue · onChange · presentation native|dropdown|checkboxes · emptySelectionLabel · clearSelectionLabel 一句话:封闭集合多选;dropdown 是常规呈现,关闭时摘要选中项,打开时 body 边界的 listbox。 须提供 : options ;dropdown 给 emptySelectionLabel ;checkboxes 给 clearSelectionLabel ;必填清单至少一个可选项被选。 静态页 : mountStaticMultiSelect 。 不用 :开放集合(resolveFieldValueControl 判为 unsupported)。

Interactive examples · Inputs

NumberInput

Supply label and unit, min/max for limits. Native number preserves typing, paste and validation; spin buttons are hidden. Stepper is for process position.

min · max · step · inputMode · disabledReason · label + unit

Inputs and selection · fill: The control fills the field with its existing 12ch minimum. The parent must provide that minimum; verify the committed min/max value independently of width.

Usage example
import { NumberInput, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

// Before using this template, inspect the target project's existing form-column
// token, layout rule or container. Bind its class below and record its source in
// declaration.fieldColumns. Do not copy the documentation-only 28rem context.
// If no host rule exists, stop for the host layout decision; never invent a DS token.
export function Example({ formColumnClassName }: { formColumnClassName: string }) {
  if (!formColumnClassName) throw new Error("HOST_FORM_COLUMN_DECISION_REQUIRED");
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" className={formColumnClassName} data-tcrn-field-column="" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <NumberInput aria-label="Seats (people)" min={1} max={120}/>
    </div>
  </>;
}
Interactive examples

NumberInput

Supply label and unit, min/max for limits. Native number preserves typing, paste and validation; spin buttons are hidden. Stepper is for process position.

Layout responsibility · Sizing: fill

The control fills the field with its existing 12ch minimum. The parent must provide that minimum; verify the committed min/max value independently of width.

Standard examples: 06-inputs · L129

States and variants

default

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

bounds

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

readonly

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

disabled

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

Unavailable in this example

error

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

Email address is incomplete

Open a state for interaction and debugging

Requirements, use and behavior

NumberInput min · max · step · inputMode · disabledReason 一句话:数值就用数值控件:原生 number,键盘、粘贴、范围校验都保留;Stepper 只表达流程位置。 须提供 :label 与单位(单位写在 label 或 hint);范围用 min/max。 外形 :隐藏原生 spin 按钮,min-width 12ch,tabular 数字。

Interactive examples · Inputs

DatePicker

Name the native date control; values stay YYYY-MM-DD and min/max constrain range. The 14px calendar shares the native clickable indicator area.

value (ISO) · min · max · label

Inputs and selection · fill: The field sets width; retain the native date segments and reserved picker area. Native locale rendering and very narrow fields need browser checks.

Usage example
import { DatePicker, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

// Before using this template, inspect the target project's existing form-column
// token, layout rule or container. Bind its class below and record its source in
// declaration.fieldColumns. Do not copy the documentation-only 28rem context.
// If no host rule exists, stop for the host layout decision; never invent a DS token.
export function Example({ formColumnClassName }: { formColumnClassName: string }) {
  if (!formColumnClassName) throw new Error("HOST_FORM_COLUMN_DECISION_REQUIRED");
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" className={formColumnClassName} data-tcrn-field-column="" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <DatePicker aria-label="Date" min="2026-01-01" max="2026-12-31"/>
    </div>
  </>;
}
Interactive examples

DatePicker

Name the native date control; values stay YYYY-MM-DD and min/max constrain range. The 14px calendar shares the native clickable indicator area.

Layout responsibility · Sizing: fill

The field sets width; retain the native date segments and reserved picker area. Native locale rendering and very narrow fields need browser checks.

Standard examples: 06-inputs · L130

States and variants

default

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

bounds

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

readonly

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

disabled

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

error

Documentation context: a fluid form column capped at 28rem, not a Design System token. Products use their existing form-column rule.

Choose a valid date

Open a state for interaction and debugging

Requirements, use and behavior

DatePicker value ISO · min · max 一句话:原生 date,值永远是 YYYY-MM-DD,显示格式随读者的系统。 须提供 :label;范围 min/max。 外形 :右侧 calendar 图标 14 三级墨;原生指示器透明覆盖同一 30px 区域,点击打开系统日历。

Interactive examples · Inputs

Checkbox

Provide an associated label and disabled reason when needed. Native checkbox supports checked, mixed and error states. Immediate binary settings use Switch.

native attributes · label · disabledReason

Inputs and selection · fixed: The control remains a 16px square; its external label owns wrapping. Checked, indeterminate, focus and error never change the square.

Usage example
import { Checkbox, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example() {
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <label style={{display:"inline-flex",alignItems:"center",gap:"var(--tcrn-space-2)"}}><Checkbox/>Notify after saving</label>
    </div>
  </>;
}
Interactive examples

Checkbox

Provide an associated label and disabled reason when needed. Native checkbox supports checked, mixed and error states. Immediate binary settings use Switch.

Layout responsibility · Sizing: fixed

The control remains a 16px square; its external label owns wrapping. Checked, indeterminate, focus and error never change the square.

Standard examples: 06-inputs · L131

States and variants

default

checked

indeterminate

focus

disabled

error

Email address is incomplete

Open a state for interaction and debugging

Requirements, use and behavior

Checkbox 原生属性 · disabledReason 一句话:16 方的原生 checkbox 去掉系统外观:青底白勾、半选横杠、红边错误。 须提供 :label(包裹或 for);描述放 label 内第二行。 不用 :二值设置的开关语义(用 Switch);单选(用 RadioGroup)。

Interactive examples · Inputs

RadioGroup

Provide legend, unique name and options with native radios. All choices remain visible; use Select above five options and navigation components for routes.

legend · name · options[{value,label,description,disabled,minInlineSize}] · value/defaultValue · onChange

Inputs and selection · mixed: The group fills its parent, while each radio remains a 16px square. Legend and option labels wrap; long translations do not stretch the radio.

Usage example
import { RadioGroup, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example() {
  const options = [{ value: "review", label: "Review" }, { value: "release", label: "Release" }];
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <RadioGroup legend="Access" name="access" options={options}/>
    </div>
  </>;
}
Interactive examples

RadioGroup

Provide legend, unique name and options with native radios. All choices remain visible; use Select above five options and navigation components for routes.

Layout responsibility · Sizing: mixed

The group fills its parent, while each radio remains a 16px square. Legend and option labels wrap; long translations do not stretch the radio.

Standard examples: 06-inputs · L132

States and variants

default

Status

selected

Status

disabled

Status

error

Status

Email address is incomplete

Open a state for interaction and debugging

Requirements, use and behavior

RadioGroup legend(必填)· name(必填)· options[{value,label,description,disabled,minInlineSize}] · value/defaultValue · onChange 一句话:fieldset 加 legend 的原生单选组,看见全部选项就是它的意义。 须提供 : legend 与 name (同页两组同名会合并)。 不用 :超过五项(用 Select);导航(用 SegmentedNav)。

Interactive examples · Inputs

Switch

Provide a label and optional associated description. Immediate binary settings use a 34×20 track/14 travel, small 28×16/12. Saved options use Checkbox.

label · description · controlClassName

Inputs and selection · mixed: Track stays 34×20, or 28×16 in small; label and description use the parent space. Immediate settings do not require a Save action.

Usage example
import { Switch, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example() {
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <Switch label="Notify now" description="Applies immediately"/>
    </div>
  </>;
}
Interactive examples

Switch

Provide a label and optional associated description. Immediate binary settings use a 34×20 track/14 travel, small 28×16/12. Saved options use Checkbox.

Layout responsibility · Sizing: mixed

Track stays 34×20, or 28×16 in small; label and description use the parent space. Immediate settings do not require a Save action.

Standard examples: 06-inputs · L133

States and variants

default

checked

small

disabled

Open a state for interaction and debugging

Requirements, use and behavior

Switch label(必填)· description · controlClassName 一句话:立即生效的二值设置;轨 34 × 20,钮行程 14。 须提供 : label ;需要说明时 description (自动 aria-describedby)。 不用 :需要「保存」才生效的选项(用 Checkbox);多于二值(用 RadioGroup / Select)。

Interactive examples · Inputs

ProductShell

Supply the four-level menu, global search, per-user/product server pins, registered brand key, avatar products and PageHeader. No permanent sidebar or invented mark.

menu model (four levels) · per-user per-product pin preferences · search provider · registered product key · avatar product list · PageHeader

Application shell · fill: The shell fills its viewport/container. Existing breakpoints select the narrow menu; page content owns its width, not action components.

Usage example
import type { ComponentProps } from "react";
import { ProductShell, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example(props: ComponentProps<typeof ProductShell>) {
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <ProductShell {...props} />
    </div>
  </>;
}
Interactive examples

ProductShell

Supply the four-level menu, global search, per-user/product server pins, registered brand key, avatar products and PageHeader. No permanent sidebar or invented mark.

Layout responsibility · Sizing: fill

The shell fills its viewport/container. Existing breakpoints select the narrow menu; page content owns its width, not action components.

Standard examples: 07b-shell-lower · L58

States and variants

default

1240 × 640 px
Skip to shell content

Roster

24 · 3 Invited
TalentGroupStatusContract expiryUpdated
星野ひかり hoshinoA GroupSigned2027-03-31Today
白石ゆい shiraishiA GroupSigned2026-12-31Yesterday
Mika Lindqvist mikaB GroupTrial—2 days ago
陈嘉怡 chenB GroupSigned2027-06-303 days ago
小鳥遊そら takanashiA GroupSigned2027-01-15Last week
Léa Moreau leaC GroupInvited—Last week
김하늘 kimC GroupTrial—Last week
Aria Vance ariaB GroupSigned2026-11-302 weeks ago

Open a state for interaction and debugging

Requirements, use and behavior

产品须提供 菜单模型 :分组 → 项 → 子项(三级)→ 子项(四级);图标名出自名册、路由、五语标签。 固定项存储 :每用户每产品,服务端偏好(跨设备);可固定分组、项或子菜单;上限 6,顺序为固定顺序,可拖排;第 7 项起只在菜单里标记已固定。 搜索提供者 :完整菜单搜全站目标;下拉里的搜索只搜该子树;复用 ProductShellSearch。 品牌资产 :使用产品标、侧栏尺度首行与完整锁定块;产品只传产品键,不传颜色或文案。 产品清单 :切换产品在头像菜单里,锁定块不承担。 PageHeader 必有 :面包屑 + 标题 + 动作;目录与书签在页内独立空间(TocRail、书签栏)。 何时用与不用 TMS、AOS、Atelier、DS 文档站都用这一套顶带壳;没有常驻侧栏。 标按钮是桌面端唯一的完整菜单入口;一段即开,没有小面板。 完整菜单与下拉都是临时浮层:选中、Esc、点外部即收;没有收起钮;与键之间留 6px。 固定的二级菜单从顶带纵向下拉;三、四级按 点击 向右级联,不按悬停。 右下角锁定块只装饰,不可点、不进 Tab 序列。 键盘与读屏 ⌘K / Ctrl+K 打开完整菜单并聚焦搜索; Esc 关闭,焦点回标按钮;菜单内 ↑↓ 走项,→ 进入子项列,← 回左列。 标按钮 aria-expanded 、 aria-haspopup="dialog" ;固定的二级菜单同样;浮层 role="dialog" 非模态。 图钉是真按钮, aria-pressed ,可见名「固定到顶带:合约」;行获焦时图钉同 hover 出现。 所有可见字符串共用同一套五语文案;图标钮都有 aria-label。 触摸端:标按钮 ≥ 40,Sheet 行 44,图钉热区 44。

Interactive examples · Top-band shell · geometry and contracts

ShellBrandButton

Pass a registered product key. v1 is symbol/toggle, v2 is first-line lockup/toggle; expose dialog and expanded semantics. One press opens the full menu.

registered product key · version v1|v2 (full lockup is the separate third rendition) · locale (explicit for fragment and server-rendered examples) · aria-expanded · aria-haspopup=dialog

Application shell · mixed: Registered mark/toggle geometry and content determine the button, with the existing shell minimum. A standalone grid aligns its root to start; the shell owns the narrow touch geometry.

Usage example
import type { ComponentProps } from "react";
import { ShellBrandButton, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example(props: ComponentProps<typeof ShellBrandButton>) {
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", justifyItems: "start", gap: "var(--tcrn-space-2)" }}>
      <ShellBrandButton {...props} />
    </div>
  </>;
}
Interactive examples

ShellBrandButton

Pass a registered product key. v1 is symbol/toggle, v2 is first-line lockup/toggle; expose dialog and expanded semantics. One press opens the full menu.

Layout responsibility · Sizing: mixed

Registered mark/toggle geometry and content determine the button, with the existing shell minimum. A standalone grid aligns its root to start; the shell owns the narrow touch geometry.

Standard examples: 07a-shell-upper · L22

States and variants

default

Open a state for interaction and debugging

Requirements, use and behavior

壳只有一种:顶带态。顶带左上是一个标按钮(锁定块的首行与标垂直居中,侧栏尺度标 22 + 12.5/600,右侧 20 格展开收起示意,无轮廓;整行中线 26),右侧一排用户固定项,无分割线,标按钮隐形边界到固定项、固定项之间的间距完全相等;点标按钮一段即开完整菜单(接在标按钮下 6px,搜索、三列、当前位置、右下角侧栏尺度锁定块只装饰,没有收起钮,点外部即收)。图钉可固定分组、项或子菜单;固定的二级菜单从顶带纵向下拉,接续 6px、顶部带搜索,三、四级向右级联,同宽,高度随左列。没有常驻侧栏:文档站同样用这套壳,目录与书签进页内;设置页的内容居中 1040。固定项上限 6,窄于 1024 整组收进菜单;切换产品在头像菜单;级联按点击展开,不按悬停。

Interactive examples · Top-band shell · states and motion

ShellMenu

Provide groups, global search and pin callbacks. Non-modal full menu closes on selection, Esc or outside click; shortcut focuses search and arrows navigate columns.

grouped menu model · open / close · search provider · pin preferences · non-modal dialog

Application shell · mixed: The shell owns anchored panel/sheet geometry and viewport collision. Search and columns fill their assigned space; do not fit the whole menu to a short item.

Usage example
import type { ComponentProps } from "react";
import { ShellMenu, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example(props: ComponentProps<typeof ShellMenu>) {
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <ShellMenu {...props} />
    </div>
  </>;
}
Interactive examples

ShellMenu

Provide groups, global search and pin callbacks. Non-modal full menu closes on selection, Esc or outside click; shortcut focuses search and arrows navigate columns.

Layout responsibility · Sizing: mixed

The shell owns anchored panel/sheet geometry and viewport collision. Search and columns fill their assigned space; do not fit the whole menu to a short item.

Standard examples: 07b-shell-lower · L61

States and variants

default

1240 × 640 px
Skip to shell content

Roster

24 · 3 Invited
TalentGroupStatusContract expiryUpdated
星野ひかり hoshinoA GroupSigned2027-03-31Today
白石ゆい shiraishiA GroupSigned2026-12-31Yesterday
Mika Lindqvist mikaB GroupTrial—2 days ago
陈嘉怡 chenB GroupSigned2027-06-303 days ago
小鳥遊そら takanashiA GroupSigned2027-01-15Last week
Léa Moreau leaC GroupInvited—Last week
김하늘 kimC GroupTrial—Last week
Aria Vance ariaB GroupSigned2026-11-302 weeks ago

Open a state for interaction and debugging

Requirements, use and behavior

搜索提供者 :完整菜单搜全站目标;下拉里的搜索只搜该子树;复用 ProductShellSearch。 标按钮是桌面端唯一的完整菜单入口;一段即开,没有小面板。 完整菜单与下拉都是临时浮层:选中、Esc、点外部即收;没有收起钮;与键之间留 6px。 右下角锁定块只装饰,不可点、不进 Tab 序列。 ⌘K / Ctrl+K 打开完整菜单并聚焦搜索; Esc 关闭,焦点回标按钮;菜单内 ↑↓ 走项,→ 进入子项列,← 回左列。 标按钮 aria-expanded 、 aria-haspopup="dialog" ;固定的二级菜单同样;浮层 role="dialog" 非模态。 图钉是真按钮, aria-pressed ,可见名「固定到顶带:合约」;行获焦时图钉同 hover 出现。 所有可见字符串共用同一套五语文案;图标钮都有 aria-label。

Interactive examples · Top-band shell · geometry and contracts

ShellPins

Provide ordered pins and reorder callbacks. Show at most six, move overflow to the menu and hide the strip group below 1024. Pin buttons retain item-specific names.

ordered pinned items (maximum 6 visible) · pin reorder callback · selected route

Application shell · mixed: Items follow content within the shell strip; at most six are visible, overflow stays in the menu and below 1024 the strip group hides.

Usage example
import type { ComponentProps } from "react";
import { ShellPins, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example(props: ComponentProps<typeof ShellPins>) {
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <ShellPins {...props} />
    </div>
  </>;
}
Interactive examples

ShellPins

Provide ordered pins and reorder callbacks. Show at most six, move overflow to the menu and hide the strip group below 1024. Pin buttons retain item-specific names.

Layout responsibility · Sizing: mixed

Items follow content within the shell strip; at most six are visible, overflow stays in the menu and below 1024 the strip group hides.

Standard examples: 07b-shell-lower · L60

States and variants

default

1240 × 640 px
Skip to shell content

Roster

24 · 3 Invited
TalentGroupStatusContract expiryUpdated
星野ひかり hoshinoA GroupSigned2027-03-31Today
白石ゆい shiraishiA GroupSigned2026-12-31Yesterday
Mika Lindqvist mikaB GroupTrial—2 days ago
陈嘉怡 chenB GroupSigned2027-06-303 days ago
小鳥遊そら takanashiA GroupSigned2027-01-15Last week
Léa Moreau leaC GroupInvited—Last week
김하늘 kimC GroupTrial—Last week
Aria Vance ariaB GroupSigned2026-11-302 weeks ago

Open a state for interaction and debugging

Requirements, use and behavior

固定项存储 :每用户每产品,服务端偏好(跨设备);可固定分组、项或子菜单;上限 6,顺序为固定顺序,可拖排;第 7 项起只在菜单里标记已固定。 完整菜单与下拉都是临时浮层:选中、Esc、点外部即收;没有收起钮;与键之间留 6px。 标按钮 aria-expanded 、 aria-haspopup="dialog" ;固定的二级菜单同样;浮层 role="dialog" 非模态。 触摸端:标按钮 ≥ 40,Sheet 行 44,图钉热区 44。

Interactive examples · Top-band shell · geometry and contracts

ShellDropdown

Supply the pinned subtree. Search only that subtree; click opens equal-width/equal-height level 3/4 columns with a 4px gap. Selection, Esc or outside closes it.

pinned subtree · search within subtree · click-driven level 3/4 cascades

Application shell · mixed: The shell owns anchored token-width columns, flip and viewport height. Level 3/4 columns use equal width and click-driven cascades.

Usage example
import type { ComponentProps } from "react";
import { ShellDropdown, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example(props: ComponentProps<typeof ShellDropdown>) {
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <ShellDropdown {...props} />
    </div>
  </>;
}
Interactive examples

ShellDropdown

Supply the pinned subtree. Search only that subtree; click opens equal-width/equal-height level 3/4 columns with a 4px gap. Selection, Esc or outside closes it.

Layout responsibility · Sizing: mixed

The shell owns anchored token-width columns, flip and viewport height. Level 3/4 columns use equal width and click-driven cascades.

Standard examples: 07b-shell-lower · L61

States and variants

default

1240 × 640 px
Skip to shell content

Roster

24 · 3 Invited
TalentGroupStatusContract expiryUpdated
星野ひかり hoshinoA GroupSigned2027-03-31Today
白石ゆい shiraishiA GroupSigned2026-12-31Yesterday
Mika Lindqvist mikaB GroupTrial—2 days ago
陈嘉怡 chenB GroupSigned2027-06-303 days ago
小鳥遊そら takanashiA GroupSigned2027-01-15Last week
Léa Moreau leaC GroupInvited—Last week
김하늘 kimC GroupTrial—Last week
Aria Vance ariaB GroupSigned2026-11-302 weeks ago

Open a state for interaction and debugging

Requirements, use and behavior

搜索提供者 :完整菜单搜全站目标;下拉里的搜索只搜该子树;复用 ProductShellSearch。 完整菜单与下拉都是临时浮层:选中、Esc、点外部即收;没有收起钮;与键之间留 6px。 固定的二级菜单从顶带纵向下拉;三、四级按 点击 向右级联,不按悬停。 ⌘K / Ctrl+K 打开完整菜单并聚焦搜索; Esc 关闭,焦点回标按钮;菜单内 ↑↓ 走项,→ 进入子项列,← 回左列。 标按钮 aria-expanded 、 aria-haspopup="dialog" ;固定的二级菜单同样;浮层 role="dialog" 非模态。

Interactive examples · Top-band shell · geometry and contracts

ShellIntro

Mount only after successful sign-in with the registered color mark and session marker. Transform/opacity only, 460ms≤700; refresh/session reuse/reduced motion never replay.

sign-in success event · registered color mark · once-per-session marker · reduced-motion preference

Application shell · mixed: Registered lockup and measured final shell mark define the animation; it owns no independent page width. Reduced motion ends directly at shell geometry.

Usage example
import type { ComponentProps } from "react";
import { ShellIntro, tcrnComponentCss } from "@tcrn/ui-react/approved";
import { tcrnTokenCss } from "@tcrn/ui-tokens";
import "@tcrn/ui-tokens/fonts.css";

export function Example(props: ComponentProps<typeof ShellIntro>) {
  return <>
    <style>{tcrnTokenCss + "\n" + tcrnComponentCss}</style>
    <div data-tcrn-root data-tcrn-theme="light" style={{ display: "grid", gap: "var(--tcrn-space-2)" }}>
      <ShellIntro {...props} />
    </div>
  </>;
}
Interactive examples

ShellIntro

Mount only after successful sign-in with the registered color mark and session marker. Transform/opacity only, 460ms≤700; refresh/session reuse/reduced motion never replay.

Layout responsibility · Sizing: mixed

Registered lockup and measured final shell mark define the animation; it owns no independent page width. Reduced motion ends directly at shell geometry.

Standard examples: 07a-shell-upper · L179

States and variants

default

1240 × 640 px
Skip to shell content

Roster

24 · 3 Invited
TalentGroupStatusContract expiryUpdated
星野ひかり hoshinoA GroupSigned2027-03-31Today
白石ゆい shiraishiA GroupSigned2026-12-31Yesterday
Mika Lindqvist mikaB GroupTrial—2 days ago
陈嘉怡 chenB GroupSigned2027-06-303 days ago
小鳥遊そら takanashiA GroupSigned2027-01-15Last week
Léa Moreau leaC GroupInvited—Last week
김하늘 kimC GroupTrial—Last week
Aria Vance ariaB GroupSigned2026-11-302 weeks ago

Open a state for interaction and debugging

Requirements, use and behavior

登入动画 登入卡上是锁定块(标 128),收敛为顶带的第二版(标 22);只用 transform 与 opacity t = 0 · 登入成功,登入卡上是第三版(标 128) t = 120 · 表单淡出 --t-fill 120ms t = 240 · 标飞向左上 --t-move 240ms --ease t = 360 · 纸升起;字标首行、固定项、右上簇淡入 t = 460 · 终态:第二版(标 22 + TCRN TMS) 播放条件 只在 登入成功 这一刻播一次;刷新、会话恢复、SSO 回跳、切换产品都不播。 一个会话内不重复;服务端渲染首屏时顶带直接在终态。 总时长 460ms :120 淡出 + 240 位移 + 100 纸升起与字标淡入,上限 700。 实现约束 只用 transform 与 opacity ;登入卡上的锁定块与顶带的首行共用同一份标 SVG(128 → 22),描述行淡出、字标保留。 终点坐标就是顶带标的几何,结束后无跳变;标全程彩色。 动画期间不挡交互:120ms 后指针事件穿透,键盘可直接 Tab 到标按钮。 减少动画偏好 prefers-reduced-motion: reduce 时不播,直接呈现终态。 菜单开合、下拉、级联、图钉出现同样尊重该偏好:时长归零。 门:带偏好的渲染里 transition 时长读数为 0,动画次数计数为 0。

Interactive examples · Top-band shell · states and motion

Adopted support · awaiting publication

Customer table/cards, pagination, five business states, confirmation and product locale copy: Owner-adopted under minutes:6f3e0a9a1e07e3980867d82e#D2. Formal source publication is deferred; the 28-component catalogue and five built-in locales remain unchanged.