a2ui-shadcn logoa2ui-shadcn
DocsPlayground

Resources

  • Documentation
  • Playground
  • A2UI Protocol

Community

  • GitHub
  • Issues
  • shadcn/ui

More

  • Tailwind CSS
  • Next.js
  • React

a2ui-shadcn.shahnazar.me

Created by Reza Shahnazar

Getting Started

  • Introduction
  • Installation
  • Usage

Components

  • Components
    Layout
    ColumnRowCard
    Content
    Text
    Input
    TextFieldCheckBox
    Interactive
    Button
    Feedback
    Badge

Reactivity & Actions

  • Actions
  • Transport

Styling

  • Theming
  • RTL Support

Advanced

  • Custom Components
  • API Reference
  1. Home
  2. /Docs
  3. /Components
  4. /Text
Content

Text

A typography component for displaying text with various semantic variants (headings, body text, captions) and tones.

Properties

NameTypeRequiredDescription
idstringYesUnique identifier for the component
textstring | { path: string }YesText content or data binding
variant'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body' | 'caption'NoTypography style(default: body)
tone'default' | 'muted' | 'accent'NoText color tone(default: default)
align'start' | 'center' | 'end'NoText alignment

Examples

Typography Hierarchy

Different text variants for content structure

Preview
json

Data Binding

Text component with live data binding

Preview
json
Back to Components