Expand description
Typography components for consistent text styling.
Provides heading, paragraph, and text components with a consistent typography scale.
§Examples
use gpuikit::elements::typography::*;
// Headings
let _ = h1("Main Title");
let _ = h2("Section Title");
let _ = h3("Subsection");
let _ = h4("Minor Heading");
// Paragraphs
let _ = p("Paragraph content...");
// Text utilities with variants
let _ = text("Inline text").muted();
let _ = text("Warning").destructive();
let _ = text("Code").code();
// Builder pattern options
let _ = h1("Title").align(TextAlign::Center).truncate(true);Structs§
- Blockquote
- A blockquote element for quoted content.
- Heading
- A heading element (h1-h4).
- Lead
- A lead text element, typically used for introductory paragraphs.
- Paragraph
- A paragraph element for body text.
- Small
- A small text element for captions, labels, etc.
- Text
- A generic styled text element with various options.
Enums§
- Text
Align - Text alignment options.
- Text
Variant - Color variants for text.
Functions§
- blockquote
- Creates a blockquote element.
- h1
- Creates an H1 heading element.
- h2
- Creates an H2 heading element.
- h3
- Creates an H3 heading element.
- h4
- Creates an H4 heading element.
- lead
- Creates a lead text element (larger intro text).
- p
- Creates a paragraph element.
- small
- Creates a small text element.
- text
- Creates a generic styled text element.