Components
Benefits Section
A checklist of benefits paired with supporting media.
Installation
$ npx veil-ui@latest add benefits-sectionUsage
import { BenefitsSection } from "@/components/ui/benefits-section";
<BenefitsSection
title="Why teams switch"
benefits={[
{ title: "Own the source", description: "Components land in your repo." },
]}
/>;Examples
Basic
Why teams switch
Less time wiring UI, more time shipping product.
Own the source
Components land in your repo, ready to edit.
Accessible by default
Focus management and ARIA handled for you.
Consistent by construction
Shared tokens keep every page coherent.
Benefit preview
With media
Measure the impact
Dashboards you can trust, out of the box.
Real-time metrics
Exportable reports
Analytics preview
API reference
The package exports benefits-section along with its composable parts. It forwards standard attributes to its root element; see the examples above for the component-specific props.
Accessibility
- Pages keep a single
h1in the hero and useh2/h3for section hierarchy. - Call-to-action elements are real links or buttons with discernible labels.
- Decorative icons are
aria-hiddenand meaningful images requirealttext.
Vue and plain HTML
This component also ships for Vue (Reka UI) and plain HTML. Install it with npx veil-ui add benefits-section --framework vue or switch the framework in components.json.
<template>
<div data-slot="benefits-section" class="grid items-center gap-8 md:grid-cols-2 w-full max-w-5xl"><div class="flex flex-col gap-3"><h2 class="text-2xl font-semibold tracking-tight">Why teams switch</h2><p class="text-sm text-muted-foreground">Less time wiring UI, more time shipping product.</p><ul class="mt-2 grid gap-4"><li class="flex items-start gap-3"><span class="mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check size-3" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg></span><div><p class="text-sm font-medium">Own the source</p><p class="text-sm text-muted-foreground">Components land in your repo, ready to edit.</p></div></li><li class="flex items-start gap-3"><span class="mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check size-3" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg></span><div><p class="text-sm font-medium">Accessible by default</p><p class="text-sm text-muted-foreground">Focus management and ARIA handled for you.</p></div></li><li class="flex items-start gap-3"><span class="mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check size-3" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg></span><div><p class="text-sm font-medium">Consistent by construction</p><p class="text-sm text-muted-foreground">Shared tokens keep every page coherent.</p></div></li></ul></div><div class="grid min-h-56 place-items-center overflow-hidden rounded-xl border bg-gradient-to-br from-primary/10 via-muted/40 to-background p-6"><span class="text-sm text-muted-foreground">Benefit preview</span></div></div>
</template>