# Label The Label system provides various styles for displaying text labels, with options for different visual treatments and sizes. Labels can be used to highlight text, show status, or create visual hierarchy in your interface. ### Size and Style Variants Labels come in several style variants to suit different use cases. Each variant provides a distinct visual style that can be combined with any size modifier. Small Base Large XLarge XXLarge Default Label Label Label Label Label Outline Label Label Label Label Label Underline Label Label Label Label Label Gray Label Label Label Label Label Inverted Label Label Label Label Label LabelStyle Variants Default Label Outline Label Underline Label Gray Label Inverted Label Large Outline Label XLarge Inverted Label ### Text Overflow Behavior Labels can handle longer text content through natural wrapping or text clamping. Understanding how labels behave with overflow content helps ensure your interface remains readable and visually balanced. #### Multi-line Wrapping By default, labels will wrap to multiple lines when content exceeds the available width, maintaining readability for longer text. Small Base Large Default This longer label will wrap to multiple lines when it exceeds the width This longer label will wrap to multiple lines when it exceeds the width This longer label will wrap to multiple lines when it exceeds the width Underline This longer label will wrap to multiple lines when it exceeds the width This longer label will wrap to multiple lines when it exceeds the width This longer label will wrap to multiple lines when it exceeds the width Inverted This longer label will wrap to multiple lines when it exceeds the width This longer label will wrap to multiple lines when it exceeds the width This longer label will wrap to multiple lines when it exceeds the width LabelMulti-line This longer label will wrap to multiple lines when it exceeds the width #### Text Clamping Use the framework's `data-clamp` attribute to limit labels to a specific number of lines with ellipsis overflow. Small Base Large 1-line This is a very long label text that would normally wrap to many lines but demonstrates how clamping behavior works with different variants and line limits to show ellipsis overflow This is a very long label text that would normally wrap to many lines but demonstrates how clamping behavior works with different variants and line limits to show ellipsis overflow This is a very long label text that would normally wrap to many lines but demonstrates how clamping behavior works with different variants and line limits to show ellipsis overflow 2-line This is a very long label text that would normally wrap to many lines but demonstrates how clamping behavior works with different variants and line limits to show ellipsis overflow This is a very long label text that would normally wrap to many lines but demonstrates how clamping behavior works with different variants and line limits to show ellipsis overflow This is a very long label text that would normally wrap to many lines but demonstrates how clamping behavior works with different variants and line limits to show ellipsis overflow Underline 1 This is a very long label text that would normally wrap to many lines but demonstrates how clamping behavior works with different variants and line limits to show ellipsis overflow This is a very long label text that would normally wrap to many lines but demonstrates how clamping behavior works with different variants and line limits to show ellipsis overflow This is a very long label text that would normally wrap to many lines but demonstrates how clamping behavior works with different variants and line limits to show ellipsis overflow Underline 2 This is a very long label text that would normally wrap to many lines but demonstrates how clamping behavior works with different variants and line limits to show ellipsis overflow This is a very long label text that would normally wrap to many lines but demonstrates how clamping behavior works with different variants and line limits to show ellipsis overflow This is a very long label text that would normally wrap to many lines but demonstrates how clamping behavior works with different variants and line limits to show ellipsis overflow Inverted 1 This is a very long label text that would normally wrap to many lines but demonstrates how clamping behavior works with different variants and line limits to show ellipsis overflow This is a very long label text that would normally wrap to many lines but demonstrates how clamping behavior works with different variants and line limits to show ellipsis overflow This is a very long label text that would normally wrap to many lines but demonstrates how clamping behavior works with different variants and line limits to show ellipsis overflow Inverted 2 This is a very long label text that would normally wrap to many lines but demonstrates how clamping behavior works with different variants and line limits to show ellipsis overflow This is a very long label text that would normally wrap to many lines but demonstrates how clamping behavior works with different variants and line limits to show ellipsis overflow This is a very long label text that would normally wrap to many lines but demonstrates how clamping behavior works with different variants and line limits to show ellipsis overflow LabelClamped This text will be clamped to one line This text will be clamped to exactly two lines with ellipsis ### Responsive Features Label components support all three responsive systems: size-based, orientation-based, and bit-depth variants. This enables precise control over label appearance across different device configurations. #### Breakpoint Prefixes Use breakpoint prefixes like `sm:`, `md:`, `lg:` to apply different sizes and styles at different screen widths. Responsive LabelSmall by default, xlarge on lg screens LabelResponsive Responsive Label Small by default, xlarge on lg screens Small by default, base on medium+ screens Progressive Label Sizing #### Orientation and Size+Orientation Label sizes can adapt to orientation with `portrait:` and can be combined with size breakpoints (e.g., `md:portrait:`). Orientation VariantLarge by default, small in portrait. LabelOrientation Orientation Variant Large by default, small in portrait. #### Bit-Depth Responsive Use bit-depth prefixes like `1bit:`, `2bit:`, and `4bit:` to optimize label appearance for different display color capabilities. Display OptimizedInverted (1bit) → Outline (2bit) → Underline (4bit) Selective StylingOutline (1bit) → Gray (4bit) LabelBit-Depth Responsive Display Optimized Selective Styling #### Combined Responsive Features Combine multiple responsive systems for highly targeted label styling. Use size, orientation, and bit-depth modifiers together following the pattern: `size:orientation:bit-depth:utility`. Advanced TargetingComplex responsive combinations Multi-ConditionMultiple responsive conditions LabelCombined Responsive Advanced Targeting Multi-Condition ### Backward Compatibility The gray-out label variant has been renamed from `label--gray-out` to `label--gray`. The legacy class name still works and maps to the same bit-depth responsive styling. Prefer the new name going forward. Gray label (deprecated) Gray label (preferred) Previous [Value Display data values with consistent formatting](/framework/docs/value) Next [Description Format descriptive text with standardized styles](/framework/docs/description)