Typography
Sensible defaults to use for text.
Usage
H1
This is an H1 title
Heading(level: 1) { "This is an H1 title" }
Copied!
Copy failed!
H2
This is an H2 title
Heading(level: 2) { "This is an H2 title" }
Copied!
Copy failed!
H3
This is an H3 title
Heading(level: 3) { "This is an H3 title" }
Copied!
Copy failed!
H4
This is an H4 title
Heading(level: 4) { "This is an H4 title" }
Copied!
Copy failed!
P
This is an P tag
Text { "This is an P tag" }
Copied!
Copy failed!
Inline link
Checkout our installation instructions to get started.
Text(class: 'text-center') do plain "Checkout our " InlineLink(href: helpers.docs_installation_path) { "installation instructions" } plain " to get started." end
Copied!
Copy failed!
List
- Phlex is fast
- Phlex is easy to use
- Phlex is awesome
Components.TypographyList(items: [ 'Phlex is fast', 'Phlex is easy to use', 'Phlex is awesome', ])
Copied!
Copy failed!
Numbered list
- Copy
- Paste
- Customize
Components.TypographyList(items: [ 'Copy', 'Paste', 'Customize', ], numbered: true)
Copied!
Copy failed!
Inline code
This is an inline code block
InlineCode { "This is an inline code block" }
Copied!
Copy failed!
Lead
A modal dialog that interrupts the user with important content and expects a response.
Text(as: "p", size: "5", weight: "muted") { "A modal dialog that interrupts the user with important content and expects a response." }
Copied!
Copy failed!
Large
Are you sure absolutely sure?
Text(size: "4", weight: "semibold") { "Are you sure absolutely sure?" }
Copied!
Copy failed!
Small
Email address
Text(size: "sm") { "Email address" }
Copied!
Copy failed!
Muted
Enter your email address.
Text(size: "2", class: "text-muted-foreground") { "Enter your email address." }
Copied!
Copy failed!
Components
Component | Built using | Source |
---|---|---|
Heading | Phlex | |
InlineCode | Phlex | |
InlineLink | Phlex | |
Text | Phlex |
Component | Built using | Source |
---|---|---|
Heading | Phlex | |
InlineCode | Phlex | |
InlineLink | Phlex | |
Text | Phlex | |
TypographyBlockquote | Phlex |