logo

Lumina Design

ComponentsIcons
Installation
AccordionAppHeaderAutoCompleteAvatarBottomNavigationBreadcrumbButtonCarouselCheckboxChipColumnDataTableDatePickerDialogFloatingButtonFloatingMenuInputFieldLinkMenuDropdownNextToastProviderProgressRadioButtonRangeSliderResizablePanelSelectDropDownSideBarTabSelectTabsTagTextTextAreaThemeProviderToastProviderToggleInputToggleSwitchTooltip

Text

The Text component is a basic UI element that displays text content in a stylized manner. It supports various formatting options such as size, weight, color, and alignment, making it a versatile component for displaying content across your application. Whether it's a heading, paragraph, or label, the Text component is essential for conveying information clearly and consistently. Real-life use cases include titles in card components, descriptions in product listings, or labels in forms.

The quick brown fox jumps over the lazy dog
Select text type
Heading-1 (h1)
• Heading-1 (h1)
• Heading-2 (h2)
• Heading-3 (h3)
• Heading-4 (h4)
• Heading-5 (h5)
• Heading-6 (h6)
• Sub-Heading (sh)
• Sub-Heading-1 (sb-h1)
• Sub-Heading-2 (sb-h2)
• Heading-7 (h7)
• Heading-8 (h8)
• Body-1 (b1)
• Body-2 (b2)
• Body-3 (b3)
• Sub Title (subtitle)
• Caption (caption)
• Info (info)

Code

import Text from "@lumina-design/core/Text";

// type: 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'sh', 'sb-h1', 'sb-h2', 'h7', 'h8', 'b1', 'b2', 'b3', 'subtitle', 'caption', 'info'
<Text type="h1">The quick brown fox jumps over the lazy dog</Text>