8-bit Label
8bitcn/labelFreeComponent
A simple 8-bit label component
Install it
npx shadcn@latest add https://www.8bitcn.com/r/label.jsonSource
1"use client";23import type * as React from "react";45import type * as LabelPrimitive from "@radix-ui/react-label";6import { type VariantProps, cva } from "class-variance-authority";78import { cn } from "@/lib/utils";910import { Label as ShadcnLabel } from "@/components/ui/label";1112import "@/components/ui/8bit/styles/retro.css";1314export const inputVariants = cva("", {15 variants: {16 font: {17 normal: "",18 retro: "retro",19 },20 },21 defaultVariants: {22 font: "retro",23 },24});2526interface BitLabelProps27 extends React.ComponentProps<typeof LabelPrimitive.Root>,28 VariantProps<typeof inputVariants> {29 asChild?: boolean;30}3132function Label({ className, font, ...props }: BitLabelProps) {33 return (34 <ShadcnLabel35 className={cn(className, font !== "normal" && "retro")}36 {...props}37 />38 );39}4041export { Label };
What it pulls in
Other registry items
Files it writes
More from 8bitcn
All 121 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| 8-bit Accordionaccordion | 8bitcn | Components | Free | no deps · 2 files | |
| 8-bit Alertalert | 8bitcn | Components | Free | no deps · 2 files | |
| 8-bit Alert Dialogalert-dialog | 8bitcn | Components | Free | no deps · 2 files | |
| 8-bit Avataravatar | 8bitcn | Components | Free | no deps · 2 files | |
| 8-bit Badgebadge | 8bitcn | Components | Free | no deps · 2 files | |
| 8-bit Breadcrumbbreadcrumb | 8bitcn | Components | Free | no deps · 2 files | |
| 8-bit Buttonbutton | 8bitcn | Components | Free | no deps · 2 files | |
| 8-bit Button Groupbutton-group | 8bitcn | Components | Free | no deps · 4 files |
