my/ui

Command Palette

Search for a command to run...

All components

Input Colored Border

inputs

Origin UI component.

responsive · 380px

Install

Same command in any shadcn project — React (Vite/CRA), Next.js, Remix, Astro, and more:

$npx shadcn@latest add https://your-domain/r/comp-05.json

Usage

import Cmp from "@/registry/origin-ui/comp-05";

export default function Demo() {
  return <Cmp />;
}

Component source

import { useId } from "react";

import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";

export default function Component() {
  const id = useId();
  return (
    <div className="[--ring:var(--color-indigo-300)] in-[.dark]:[--ring:var(--color-indigo-900)] *:not-first:mt-2">
      <Label htmlFor={id}>Input with colored border and ring</Label>
      <Input id={id} placeholder="Email" type="email" />
    </div>
  );
}

Source: Origin UI