Command Palette

Search for a command...

Label

Label represents a caption for an item in a user interface.

import { styled } from "styled-system/jsx";
import { Checkbox } from "@/components/ui/checkbox";
import { Label } from "@/components/ui/label";

export default function LabelDemo() {
  return (
    <styled.div css={{ display: "flex", alignItems: "center", gap: "2" }}>
      <Checkbox id="terms" />
      <Label htmlFor="terms">Accept terms and conditions</Label>
    </styled.div>
  );
}

Installation

npx nore-ui-cli@latest add label

Usage

import { Label } from "@/components/ui/label";
<Label htmlFor="email">Your email address</Label>