Input
adn-ui/inputFreeComponent
A native input element that automatically works with Field and form controls.
Live preview
live · rendered by the registry
Rendered by adn-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://ui.awaiden.com/r/input.jsonSource
1"use client";23import "./input.css";4import { Input as BaseInput } from "@base-ui/react/input";5import type React from "react";6import { cn } from "tailwind-variants";78import { InputContext } from "./input.context";9import { inputVariants, type InputVariants } from "./input.variants";1011export type InputProps = InputVariants & Omit<React.ComponentPropsWithoutRef<"input">, "size">;1213export const InputRoot = ({ className, size, variant, ...props }: InputProps) => {14 const slots = inputVariants({ size, variant });1516 return (17 <InputContext.Provider value={{ slots }}>18 <BaseInput className={cn(slots.root(), className)} {...props} />19 </InputContext.Provider>20 );21};2223export const Input = InputRoot;
What it pulls in
npm packages
Files it writes
More from adn-ui
All 46 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | adn-ui | Components | Free | 2 deps · 5 files | |
| Alert Dialogalert-dialog | adn-ui | Components | Free | 2 deps · 5 files | |
| Aspect Ratioaspect-ratio | adn-ui | Components | Free | 1 dep · 5 files | |
| Autocompleteautocomplete | adn-ui | Components | Free | 2 deps · 5 files | |
| Avataravatar | adn-ui | Components | Free | 2 deps · 5 files | |
| Badgebadge | adn-ui | Components | Free | 1 dep · 5 files | |
| Breadcrumbbreadcrumb | adn-ui | Components | Free | 1 dep · 5 files | |
| Buttonbutton | adn-ui | Components | Free | 1 dep · 4 files |
