Saasflare UI
Components

Label

Accessible form label wired to its control, with required and disabled styling.

Installation

npx shadcn@latest add https://ui.saasflare.io/r/label.json
pnpm add @saasflare/ui

Usage

Loading…
"use client"import { Input, Label } from "@saasflare/ui"/** A label associated with an input via htmlFor. */export function Demo() {    return (        <div className="flex flex-col gap-2 w-full max-w-sm">            <Label htmlFor="api-key">API key name</Label>            <Input id="api-key" placeholder="Production server" />        </div>    )}

API Reference

Prop

Type

On this page