Skip to content

Commit 992b8d7

Browse files
committed
revert(fluffy input): re-add component with fixed types and cn helper
1 parent 222460e commit 992b8d7

File tree

1 file changed

+16
-0
lines changed
  • packages/kit-fluffy/src/components/input

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { QwikIntrinsicElements, component$ } from '@builder.io/qwik';
2+
import { cn } from '@qwik-ui/utils';
3+
4+
export type InputProps = QwikIntrinsicElements['input'];
5+
6+
export const Input = component$<InputProps>(({ ...props }) => {
7+
return (
8+
<input
9+
{...props}
10+
class={cn(
11+
'border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
12+
props.class,
13+
)}
14+
/>
15+
);
16+
});

0 commit comments

Comments
 (0)