Zum Inhalt springen

Label

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

import { Label } from "@rebasepro/ui";
Prop Type Required Description
style React.CSSProperties
className string
id string
children React.ReactNode
asChild boolean
border boolean
ref React.Ref Allows getting a ref to the component instance. Once the component unmounts, React will set ref.current to null (or

This is the example the design-system sync renders and verifies for this component.

import { Label } from "@rebasepro/ui";
export const Basic = () => (
<div className="flex flex-col gap-2 p-4">
<Label htmlFor="email-field">Email address</Label>
<Label htmlFor="role-field">Role</Label>
</div>
);