Saasflare UI
Components

Section Card

Composable section/landing card with header, content, and footer slots.

Installation

npx shadcn@latest add https://ui.saasflare.io/r/section-card.json
pnpm add @saasflare/ui

Usage

Loading…
"use client"import { Button, Input, Label, SectionCard } from "@saasflare/ui"/** A titled settings panel with a footer action. */export function Demo() {    return (        <SectionCard            className="w-full max-w-md"            title="General"            description="Basic information about your project."            footer={<Button size="sm">Save changes</Button>}        >            <div className="space-y-2">                <Label htmlFor="project-name">Project name</Label>                <Input id="project-name" defaultValue="Saasflare Web" />            </div>        </SectionCard>    )}

With Header Action

Loading…
"use client"import { Badge, Button, SectionCard } from "@saasflare/ui"/** A section panel with an action in the header and rich content. */export function Demo() {    return (        <SectionCard            className="w-full max-w-md"            title="API Keys"            description="Keys used to authenticate requests to the Saasflare API."            headerAction={                <Button variant="outline" size="sm">                    Generate key                </Button>            }        >            <div className="flex items-center justify-between text-sm">                <code className="font-mono text-muted-foreground">sk_live_••••4f2a</code>                <Badge variant="soft" intent="success">                    Active                </Badge>            </div>        </SectionCard>    )}

API Reference

Prop

Type

On this page