Components
Use Cases Section
A grid of audience or workflow use cases with links.
Installation
$ npx veil-ui@latest add use-cases-sectionUsage
import { UseCasesSection } from "@/components/ui/use-cases-section";
<UseCasesSection
title="Built for every team"
cases={[
{ title: "Startups", description: "Ship without a design system team." },
]}
/>;Examples
Basic
Built for every team
Start from primitives that match how your team already works.
Startups
Ship a polished product surface without a design system team.
Learn moreEnterprises
Standardize patterns across dozens of internal apps.
Learn moreEducation
Teach modern UI engineering with readable source.
Plain
Where teams use it
Dashboards
Dense data with calm visuals.
Onboarding
Focused flows with clear actions.
API reference
The package exports use-cases-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 use-cases-section --framework vue or switch the framework in components.json.
<template>
<div data-slot="use-cases-section" class="grid gap-6 w-full max-w-5xl"><div class="mx-auto max-w-2xl text-center"><h2 class="text-2xl font-semibold tracking-tight">Built for every team</h2><p class="mt-2 text-sm text-muted-foreground">Start from primitives that match how your team already works.</p></div><div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3"><a href="#startups" class="rounded-lg border bg-background p-5 transition-colors hover:bg-accent/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"><span class="flex size-9 items-center justify-center rounded-md bg-primary/10 text-primary [&_svg]:size-4"><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-rocket" aria-hidden="true"><path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"></path><path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09"></path><path d="M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z"></path><path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05"></path></svg></span><h3 class="mt-3 text-sm font-semibold">Startups</h3><p class="mt-1 text-sm text-muted-foreground">Ship a polished product surface without a design system team.</p><span class="mt-3 inline-flex items-center gap-1 text-xs font-medium text-primary">Learn more <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-arrow-right size-3" aria-hidden="true"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></span></a><a href="#enterprise" class="rounded-lg border bg-background p-5 transition-colors hover:bg-accent/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"><span class="flex size-9 items-center justify-center rounded-md bg-primary/10 text-primary [&_svg]:size-4"><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-briefcase" aria-hidden="true"><path d="M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path><rect width="20" height="14" x="2" y="6" rx="2"></rect></svg></span><h3 class="mt-3 text-sm font-semibold">Enterprises</h3><p class="mt-1 text-sm text-muted-foreground">Standardize patterns across dozens of internal apps.</p><span class="mt-3 inline-flex items-center gap-1 text-xs font-medium text-primary">Learn more <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-arrow-right size-3" aria-hidden="true"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></span></a><div class="rounded-lg border bg-background p-5"><span class="flex size-9 items-center justify-center rounded-md bg-primary/10 text-primary [&_svg]:size-4"><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-graduation-cap" aria-hidden="true"><path d="M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z"></path><path d="M22 10v6"></path><path d="M6 12.5V16a6 3 0 0 0 12 0v-3.5"></path></svg></span><h3 class="mt-3 text-sm font-semibold">Education</h3><p class="mt-1 text-sm text-muted-foreground">Teach modern UI engineering with readable source.</p></div></div></div>
</template>