Skip to content
Klarhimmel UI

Features, list

Features, list previewFeatures, list preview

Install

npx shadcn add @klarhimmel/features-list
DetailsAbout, usage, props and more

Heading and a link on the left, a vertical list of up to six features with icon, title and description on the right.

Import

Import

import Block from '@/components/klarhimmel/blocks/features-list';
Also called
  • features/list
Category
What it does, as a grid, a list, tabs or alternating rows. New project? Set it up once: /get-started/installation.

Notes

When to use it

A short stacked list of features, with an icon and a longer explanation each, plus a link to learn more. For many features at once use features-grid.

Writing for it

- Items take one to six, and each requires an icon, a title (60) and a description (200). Write the description as one concrete example. - The link field sits beside the intro, so use it to point to the full features page or docs. - The intro is split from the list. Put the claim in the title (120) and keep the description (300) to one sentence on who the list is for.

Watch out for

The icon is required on every item here, unlike in features-grid, so every row in the list needs an icon picked before it is finished.

Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import FeaturesList from '@/components/klarhimmel/blocks/features-list';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <FeaturesList props={{
          "eyebrow": "Name the reason",
          "title": "Say what the reader gets and what goes away",
          "description": "Say in one sentence who this is for and what they would rather be doing.",
          "link": {
            "label": "Read more",
            "href": "#how-it-works"
          },
          "items": [
            {
              "icon": "layers",
              "title": "Name the first benefit",
              "description": "Say what the first benefit means for the reader, in one sentence."
            },
            {
              "icon": "clock",
              "title": "Name the second benefit",
              "description": "Say what the second benefit means for the reader, in one sentence."
            },
            {
              "icon": "shield",
              "title": "Name the third benefit",
              "description": "Say what the third benefit means for the reader, in one sentence."
            },
            {
              "icon": "chart",
              "title": "Name the fourth benefit",
              "description": "Say what the fourth benefit means for the reader, in one sentence."
            }
          ]
        }} />
      </BlockSurface>
    </Theme>
  );
}

Props

The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.

PropTypeDefaultDescription
eyebrowstring'Name the reason'Text, up to 60 characters.
titlestring'Say what the reader gets and what g…'Text, up to 120 characters.
descriptionstring'Say in one sentence who this is for…'Text, up to 300 characters.
linkLink{…}See the type.
items{ icon, title, description }[]4 itemsList of 1 to 6. Each item: icon ('zap' | 'shield' | 'layers' | 'globe' | 'sparkles' | 'clock' | 'code' | 'palette' | 'lock' | 'chart' | 'users' | 'mail' | 'heart' | 'rocket' | 'search' | 'settings' | 'check' | 'star' | 'book' | 'box' | 'cloud' | 'compass' | 'leaf' | 'gauge'), title, description.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.