Color Field With Prefix

PreviousNext

color-field-with-prefix-demo

Docs
intentuipage

Preview

Loading preview…
components/docs/colors/color-field/color-field-with-prefix-demo.tsx
"use client"

import { SwatchIcon } from "@heroicons/react/24/outline"
import { ColorField } from "@/components/ui/color-field"
import { Label } from "@/components/ui/field"
import { Input, InputGroup } from "@/components/ui/input"

export default function ColorFieldWithPrefixDemo() {
  return (
    <ColorField>
      <Label>Color</Label>
      <InputGroup>
        <SwatchIcon />
        <Input placeholder="#155DFC" />
      </InputGroup>
    </ColorField>
  )
}

Installation

npx shadcn@latest add @intentui/color-field-with-prefix-demo

Usage

Usage varies by registry entry. Refer to the registry docs or source files below for details.