{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "text",
  "title": "Text",
  "description": "Text component for React and shadcn: six sizes from 11 to 18px with paired leading, four tones, tabular numbers and line clamping.",
  "registryDependencies": [
    "https://eased.dev/r/eased-tokens.json"
  ],
  "files": [
    {
      "path": "src/registry/eased/text/text.tsx",
      "content": "import type { ComponentPropsWithoutRef, ElementType, ReactNode } from \"react\";\n\nexport type TextSize = \"2xs\" | \"xs\" | \"sm\" | \"base\" | \"md\" | \"lg\";\nexport type TextTone = \"default\" | \"secondary\" | \"muted\" | \"disabled\";\n\nexport type TextProps<T extends ElementType = \"p\"> = {\n  /** The element to render. Default \"p\"; use \"span\" inline, \"div\" for blocks. */\n  as?: T;\n  /** 11, 12, 13, 14, 16 or 18px on Eased's UI scale, with paired leading and tracking. Default \"base\" (14px). */\n  size?: TextSize;\n  /** default for body and labels, secondary for descriptions, muted for metadata, disabled. Default \"default\". */\n  tone?: TextTone;\n  /** 400 or 500. Labels and titles are medium; nothing goes heavier at UI sizes (rule 43). Default \"regular\". */\n  weight?: \"regular\" | \"medium\";\n  /** Tabular figures, for numbers that change or line up in a column. */\n  tabular?: boolean;\n  /** One line with an ellipsis. */\n  truncate?: boolean;\n  /** Clamp to this many lines with an ellipsis. */\n  lineClamp?: 1 | 2 | 3 | 4 | 5 | 6;\n  className?: string;\n  children?: ReactNode;\n} & Omit<ComponentPropsWithoutRef<T>, \"as\" | \"className\" | \"children\">;\n\nconst SIZE: Record<TextSize, string> = {\n  \"2xs\": \"text-ui-2xs\",\n  xs: \"text-ui-xs\",\n  sm: \"text-ui-sm\",\n  base: \"text-ui\",\n  md: \"text-ui-md\",\n  lg: \"text-ui-lg\",\n};\n\nconst TONE: Record<TextTone, string> = {\n  default: \"text-text\",\n  secondary: \"text-text-secondary\",\n  muted: \"text-text-muted\",\n  disabled: \"text-text-disabled\",\n};\n\nconst CLAMP = { 1: \"line-clamp-1\", 2: \"line-clamp-2\", 3: \"line-clamp-3\", 4: \"line-clamp-4\", 5: \"line-clamp-5\", 6: \"line-clamp-6\" } as const;\n\n/**\n * Body text on Eased's UI scale. Size carries its own line height and tracking, so text reads\n * the same in any app whatever its root size. Paragraphs wrap with `text-pretty`.\n */\nexport function Text<T extends ElementType = \"p\">({\n  as,\n  size = \"base\",\n  tone = \"default\",\n  weight = \"regular\",\n  tabular = false,\n  truncate = false,\n  lineClamp,\n  className = \"\",\n  ...props\n}: TextProps<T>) {\n  const Tag: ElementType = as ?? \"p\";\n  const wrap = truncate ? \"truncate\" : lineClamp ? CLAMP[lineClamp] : \"text-pretty\";\n  return (\n    <Tag\n      {...props}\n      className={`${SIZE[size]} ${TONE[tone]} ${weight === \"medium\" ? \"font-medium\" : \"font-normal\"} ${tabular ? \"tabular-nums\" : \"\"} ${wrap} min-w-0 ${className}`}\n    />\n  );\n}\n",
      "type": "registry:ui",
      "target": "@components/eased/text/text.tsx"
    }
  ],
  "meta": {
    "details": "Body text on Eased's UI scale. Six sizes with paired leading and tracking, four tones, tabular numbers, truncation and line clamping.",
    "industries": [
      "ai",
      "devtools",
      "finance",
      "crypto",
      "saas",
      "legal",
      "ecommerce",
      "real-estate",
      "health",
      "hr",
      "education",
      "travel",
      "media"
    ],
    "releaseAt": "2026-11-21"
  },
  "docs": "Import Text from components/eased/text/text. Props: as, size (2xs–lg), tone (default, secondary, muted, disabled), weight, tabular, truncate, lineClamp. The Eased tokens were merged into your global CSS; nothing to import.",
  "type": "registry:ui"
}