The Coline design system: accessible React components for Coline Apps, themed live by the host workspace, and for Coline Sites in light and dark. Tailwind v4 stylesheet included. MIT.
| 6 | return ( |
| 7 | <input |
| 8 | type={type} |
| 9 | data-slot="input" |
| 10 | className={cn( |
| 11 | "h-9 w-full min-w-0 rounded-4xl border border-input bg-muted px-3 py-1 text-base transition-colors outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-foreground/25 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 md:text-sm dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", |
| 12 | className |
| 13 | )} |
| 14 | {...props} |
| 15 | /> |
| 16 | ) |
| 17 | } |
| 18 |
| 19 | export { Input } |
| 20 |