This page shows every component lyt supports. Each example is rendered live, with the YAML code displayed below.
For complete documentation, see the Component Reference →
For content basics, see the Content Guide →
Gallery
Visual showcase of all available lyt components. See how they look and grab the code.
This page shows every component lyt supports. Each example is rendered live, with the YAML code displayed below.
For complete documentation, see the Component Reference →
For content basics, see the Content Guide →
Full-width opener
The hero component creates an impactful opening section with title, subtitle, body text, and optional buttons.
- id: "hero"
type: "hero"
title: "Page Title"
subtitle: "Subtitle"
body: "Intro text."
buttons:
- text: "Primary"
href: "/page"
variant: "primary"
- text: "Outline"
href: "/other"
variant: "outline"
A feature card with title and body.
Cards arrange in a responsive grid.
Three columns on desktop, fewer on mobile.
Add as many cards as you need.
- id: "features"
# Variants: info, tip, note
- id: "callout"
type: "callout"
variant: "info"
title: "Title"
body: "Content."
The best way to predict the future is to invent it.
Simplicity is the ultimate sophistication.
# With attribution
- id: "quote"
type: "pull-quote"
quote: "Quote text."
attribution: "Author"
# Without attribution
- id: "quote2"
type: "pull-quote"
quote: "Another quote."
- id: "cite"
type: "citation"
text: "Book Title"
url: "https://example.com"
publisher: "Publisher, Year"
Encourage users to take action with a styled CTA section.
- id: "cta"
type: "cta"
title: "Title"
body: "Description."
button_text: "Button"
button_href: "/link"
This is a default warning message.
Proceed with caution.
Something went wrong.
Good to know.
Everything went well.
# Variants: default, warning, error, info, success
- id: "warn"
type: "warning"
variant: "warning"
title: "Warning"
body: "Message."
package main
import "fmt"
func main() {
fmt.Println("Hello, lyt!")
}
meta:
title: My Site
sections:
- type: hero
title: Welcome
- id: "code"
type: "code-example"
title: "filename.go"
language: "go"
code: |
func main() {}
See the complete component documentation for all fields and options.