input
shipbase-ui/inputFreeComponent
shipbase/ui publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/shipbase/ui/next/apps/www/public/r/react/input.jsonSource
1"use client"23import * as React from "react"45import { createAnatomy } from "@ark-ui/react/anatomy"6import { type HTMLArkProps, ark } from "@ark-ui/react/factory"78import { cn } from "@/lib/utils"910const anatomy = createAnatomy("input").parts("root")11const parts = anatomy.build()1213const Input = React.forwardRef<HTMLInputElement, HTMLArkProps<"input">>(14 ({ className, type, ...props }, ref) => {15 return (16 <ark.input17 ref={ref}18 {...parts.root.attrs}19 type={type}20 className={cn(21 "flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs outline-none transition-[color,box-shadow] file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground/70 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",22 "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",23 "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",24 type === "search" &&25 "[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-webkit-search-results-button]:appearance-none [&::-webkit-search-results-decoration]:appearance-none",26 type === "file" &&27 "p-0 pr-3 text-muted-foreground/70 italic file:me-3 file:h-full file:border-0 file:border-input file:border-r file:border-solid file:bg-transparent file:px-3 file:font-medium file:text-foreground file:text-sm file:not-italic",28 className29 )}30 {...props}31 />32 )33 }34)35Input.displayName = "Input"3637export { Input }
What it pulls in
npm packages
Files it writes
More from shipbase/ui
All 32 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shipbase/ui | Components | Free | 2 deps | |
| avataravatar | shipbase/ui | Components | Free | 1 dep | |
| badgebadge | shipbase/ui | Components | Free | 2 deps | |
| buttonbutton | shipbase/ui | Components | Free | 2 deps | |
| cardcard | shipbase/ui | Components | Free | 1 dep | |
| checkboxcheckbox | shipbase/ui | Components | Free | 2 deps | |
| collapsiblecollapsible | shipbase/ui | Components | Free | 1 dep | |
| comboboxcombobox | shipbase/ui | Components | Free | 2 deps |
