Features

What a product does, as an even grid of cards, each an icon, a title and a line, every card one size.

Features

Your headline goes here

A short line about what the product does goes here.

  • Item 1

    A short line about what this feature does goes here.

  • Item 2

    A short line about what this feature does goes here.

  • Item 3

    A short line about what this feature does goes here.

  • Item 4

    A short line about what this feature does goes here.

  • Item 5

    A short line about what this feature does goes here.

  • Item 6

    A short line about what this feature does goes here.

import { Features, type FeatureItem } from "@produkto/ui/Features";
import {
  ChartLineData01Icon,
  FlashIcon,
  Layers01Icon,
  PuzzleIcon,
  Rocket01Icon,
  Shield01Icon,
} from "@hugeicons/core-free-icons";
import { Icon } from "@produkto/ui/Icon";

const items: FeatureItem[] = [
  { icon: <Icon icon={Rocket01Icon} />, title: "Item 1" },
  { icon: <Icon icon={FlashIcon} />, title: "Item 2" },
  { icon: <Icon icon={Shield01Icon} />, title: "Item 3" },
  { icon: <Icon icon={Layers01Icon} />, title: "Item 4" },
  { icon: <Icon icon={ChartLineData01Icon} />, title: "Item 5" },
  { icon: <Icon icon={PuzzleIcon} />, title: "Item 6" },
].map((item) => ({
  ...item,
  description: "A short line about what this feature does goes here.",
}));

const Example = () => (
  <Features
    description="A short line about what the product does goes here."
    eyebrow="Features"
    items={items}
    title="Your headline goes here"
  />
);

export default Example;

Usage

import { Features, type FeatureItem } from "@produkto/ui/Features";
const items: FeatureItem[] = [
  {
    title: "Item 1",
    description: "A short line about what this feature does goes here.",
  },
  {
    title: "Item 2",
    description: "A short line about what this feature does goes here.",
  },
  {
    title: "Item 3",
    description: "A short line about what this feature does goes here.",
  },
];

<Features
  eyebrow="Features"
  title="Your headline goes here"
  description="A short line about what the product does goes here."
  items={items}
/>

Examples

Soft

appearance="soft" sets each card on the muted tint, edged by the line, with no shadow; here each card has a picture over its words.

Your headline goes here

A short line about what the product does goes here.

  • Item 1

    A short line about what this feature does goes here.

  • Item 2

    A short line about what this feature does goes here.

  • Item 3

    A short line about what this feature does goes here.

import { Features, type FeatureItem } from "@produkto/ui/Features";

const scene = (
  <div className="flex px-6 pt-6">
    <div className="flex flex-1 flex-col gap-3 rounded-t-xl border border-b-0 border-border bg-background p-4">
      <span className="h-2 w-1/2 rounded-full bg-muted-foreground/25" />
      <span className="h-2 w-2/3 rounded-full bg-muted-foreground/15" />
      <span className="h-2 w-2/5 rounded-full bg-muted-foreground/15" />
    </div>
  </div>
);

const items: FeatureItem[] = ["Item 1", "Item 2", "Item 3"].map((name) => ({
  title: name,
  description: "A short line about what this feature does goes here.",
  media: scene,
}));

const Example = () => (
  <Features
    align="center"
    appearance="soft"
    description="A short line about what the product does goes here."
    items={items}
    title="Your headline goes here"
  />
);

export default Example;

Ruled

appearance="outline" rules the cards into one frame, each its words over its picture, with its links under the words.

Your headline goes here

A short line about what the product does goes here.

  • Item 1

    A short line about what this feature does goes here.

  • Item 2

    A short line about what this feature does goes here.

  • Item 3

    A short line about what this feature does goes here.

import { Features, type FeatureItem } from "@produkto/ui/Features";

const items: FeatureItem[] = ["Item 1", "Item 2", "Item 3"].map((name) => ({
  title: name,
  description: "A short line about what this feature does goes here.",
  links: [{ label: "Learn more", link: "#" }],
  media: <div className="h-32 rounded-xl bg-muted" />,
}));

const Example = () => (
  <Features
    appearance="outline"
    description="A short line about what the product does goes here."
    items={items}
    title="Your headline goes here"
  />
);

export default Example;

Transparent

appearance="transparent" drops the cards: each picture sits on the page's ground with its words under it, a little wider apart.

Your headline goes here

A short line about what the product does goes here.

  • Item 1

    A short line about what this feature does goes here.

  • Item 2

    A short line about what this feature does goes here.

  • Item 3

    A short line about what this feature does goes here.

import { Features, type FeatureItem } from "@produkto/ui/Features";

const items: FeatureItem[] = ["Item 1", "Item 2", "Item 3"].map((name) => ({
  title: name,
  description: "A short line about what this feature does goes here.",
  media: <div />,
}));

const Example = () => (
  <Features
    appearance="transparent"
    description="A short line about what the product does goes here."
    items={items}
    title="Your headline goes here"
  />
);

export default Example;

Rows

orientation="horizontal" and size="sm" set each card as a short row, its icon before its title and its arrow at the end, for a list of links such as a site's pages.

Your headline goes here

A short line about what the product does goes here.

  • A short line about what this feature does goes here.

  • A short line about what this feature does goes here.

  • A short line about what this feature does goes here.

  • A short line about what this feature does goes here.

  • A short line about what this feature does goes here.

  • A short line about what this feature does goes here.

import {
  AiMagicIcon,
  PaintBoardIcon,
  ShoppingBag01Icon,
  WebDesign01Icon,
} from "@hugeicons/core-free-icons";
import { Features, type FeatureItem } from "@produkto/ui/Features";
import { Icon } from "@produkto/ui/Icon";

const items: FeatureItem[] = [
  { title: "Item 1", icon: <Icon icon={WebDesign01Icon} size={20} /> },
  { title: "Item 2", icon: <Icon icon={ShoppingBag01Icon} size={20} /> },
  { title: "Item 3", icon: <Icon icon={AiMagicIcon} size={20} /> },
  { title: "Item 4", icon: <Icon icon={PaintBoardIcon} size={20} /> },
  { title: "Item 5", icon: <Icon icon={WebDesign01Icon} size={20} /> },
  { title: "Item 6", icon: <Icon icon={AiMagicIcon} size={20} /> },
].map((item) => ({
  ...item,
  description: "A short line about what this feature does goes here.",
  link: "#",
}));

const Example = () => (
  <Features
    actions={[{ label: "Primary action", link: "#", appearance: "outline" }]}
    align="center"
    appearance="soft"
    description="A short line about what the product does goes here."
    items={items}
    orientation="horizontal"
    size="sm"
    title="Your headline goes here"
  />
);

export default Example;

Columns

columns sets two to five cards across a wide screen; under lg the grid falls to two columns and on a phone to one, every card one size.

Your headline goes here

  • Item 1

    A short line about what this feature does goes here.

  • Item 2

    A short line about what this feature does goes here.

  • Item 3

    A short line about what this feature does goes here.

  • Item 4

    A short line about what this feature does goes here.

import { Features, type FeatureItem } from "@produkto/ui/Features";

const items: FeatureItem[] = ["Item 1", "Item 2", "Item 3", "Item 4"].map(
  (name) => ({
    title: name,
    description: "A short line about what this feature does goes here.",
  }),
);

const Example = () => (
  <Features
    appearance="soft"
    columns={4}
    items={items}
    size="sm"
    title="Your headline goes here"
  />
);

export default Example;

Cards alone, media below

FeatureCards lays the cards out with no section around them, to place inside another block; mediaPlacement="below" sets each card's words first and its picture under them, down to the card's foot.

  • Item 1

    A short line about what this feature does goes here.

  • Item 2

    A short line about what this feature does goes here.

import { FeatureCards, type FeatureItem } from "@produkto/ui/Features";

const scene = (
  <div className="flex h-44 px-6 pt-6">
    <div className="flex flex-1 flex-col gap-3 rounded-t-xl border border-b-0 border-border bg-background p-4">
      <span className="h-2 w-1/2 rounded-full bg-muted-foreground/25" />
      <span className="h-2 w-2/3 rounded-full bg-muted-foreground/15" />
      <span className="h-2 w-2/5 rounded-full bg-muted-foreground/15" />
    </div>
  </div>
);

const items: FeatureItem[] = ["Item 1", "Item 2"].map((name) => ({
  title: name,
  description: "A short line about what this feature does goes here.",
  media: scene,
}));

const Example = () => (
  <FeatureCards
    appearance="soft"
    columns={2}
    items={items}
    mediaPlacement="below"
  />
);

export default Example;

API Reference

Features

FeaturesProps · blocks/Features/Features.types.ts
PropTypeDefault
itemsrequiredFeatureItem[]-
actionsBlockAction[]-
idstring-
eyebrowstring-
titleReactNode-
descriptionReactNode-
alignSectionAlign"start" | "center" | "end""start"
mutedbooleanfalse
classNamestring-
appearanceFeatureCardsAppearance"solid" | "soft" | "outline" | "transparent"-
sizeFeatureCardsSize"sm" | "base"-
columnsFeatureCardsColumns2 | 3 | 4 | 5-
orientationFeatureCardsOrientation"vertical" | "horizontal"-
rowsFeatureCardsRows"content" | "equal"-
mediaPlacementFeatureCardsMediaPlacement"above" | "below"-
headingLevelFeatureCardsHeadingLevel2 | 3-
arrowsboolean-

FeatureCards

FeatureCardsProps
PropTypeDefault
itemsrequiredFeatureItem[]-
appearanceFeatureCardsAppearance"solid" | "soft" | "outline" | "transparent""solid"
sizeFeatureCardsSize"sm" | "base""base"
columnsFeatureCardsColumns2 | 3 | 4 | 53
orientationFeatureCardsOrientation"vertical" | "horizontal""vertical"
rowsFeatureCardsRows"content" | "equal""content"
mediaPlacementFeatureCardsMediaPlacement"above" | "below""above"
headingLevelFeatureCardsHeadingLevel2 | 33
arrowsbooleantrue

FeatureItem

used by items
PropTypeDefault
titlestring-
descriptionstring-
iconReactNode-
mediaReactNode-
linkstring-
linksBlockLink[]-

BlockAction

used by actions
PropTypeDefault
appearanceButtonAppearance"solid" | "soft" | "outline" | "transparent"-
toneButtonTone"neutral" | "accent" | "destructive" | "success" | "warning" | "info"-
iconReactNode-
iconOnlyboolean-
borderRadiusBlockActionBorderRadius"none" | "xs" | "sm" | "base" | "lg" | "xl" | "full"-
labelrequiredstring-
linkrequiredstring-

BlockLink

used by its parts
PropTypeDefault
labelrequiredstring-
linkrequiredstring-