Feature grid
Uses SectionHeader and Grid. Give an item an href and the whole
item becomes one link, with the title as its accessible name.
Why Samla
Everything a site needs
Small, well made pieces that work together from the first page to the hundredth.
Fast by default
Static HTML and only the JavaScript a page needs, so every visit starts quickly.
Accessible
Semantic markup, visible focus and labelled controls are built into every piece.
Composable
Elements combine into components and sections without special glue.
Easy to theme
Change a handful of tokens and the whole site follows.
Works at every width
From a 375px phone to a wide desktop, layouts adapt on their own.
Documented
Every piece has a page with a code sample and a live preview.
Options
Section titled “Options”eyebrow,title,intro: the section header. Withouttitle, item titles becomeh2items: list of{ title, text, icon?, image?, href? }columns:2,3(default),4variant:quiet(default, no container),outline,solid(boxed items)align:start(default),center. Applies to the header and the itemsmedia:icon(default),image(a small landscape image),number(01, 02, …)surface:light,alternate,brand,dark
<FeatureGrid eyebrow="Why Samla" title="Everything a site needs" intro="Small, well made pieces that work together." items={[ { icon: "zap", title: "Fast by default", text: "Static HTML first." }, { icon: "shield-check", title: "Accessible", text: "Part of every piece from the start." }, { icon: "layers", title: "Composable", text: "Pieces combine cleanly." }, ]}/>Explore the library
Fast by default
Static HTML and only the JavaScript a page needs, so every visit starts quickly.
Accessible
Semantic markup, visible focus and labelled controls are built into every piece.
Composable
Elements combine into components and sections without special glue.
Easy to theme
Change a handful of tokens and the whole site follows.
Built for every page
The same pieces serve landing pages, docs and articles.
Fast by default
Static HTML and only the JavaScript a page needs, so every visit starts quickly.
Accessible
Semantic markup, visible focus and labelled controls are built into every piece.
Composable
Elements combine into components and sections without special glue.
Easy to theme
Change a handful of tokens and the whole site follows.
Made with care
How it works
Three steps to a page
Fast by default
Static HTML and only the JavaScript a page needs, so every visit starts quickly.
Accessible
Semantic markup, visible focus and labelled controls are built into every piece.
Composable
Elements combine into components and sections without special glue.