Skip to content

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.

  • eyebrow, title, intro: the section header. Without title, item titles become h2
  • items: list of { title, text, icon?, image?, href? }
  • columns: 2, 3 (default), 4
  • variant: quiet (default, no container), outline, solid (boxed items)
  • align: start (default), center. Applies to the header and the items
  • media: 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." },
]}
/>
variant="outline" columns="2" with href

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.

variant="solid" align="center" columns="4" surface="alternate"

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.

media="image"

Made with care

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.

media="number" surface="dark"

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.