15 lines
584 B
Svelte
15 lines
584 B
Svelte
<script lang="ts">
|
|
import { cn } from '@/lib/utils';
|
|
|
|
let { class: className = '', type = 'text', ...rest } = $props();
|
|
</script>
|
|
|
|
<input
|
|
type={type}
|
|
class={cn(
|
|
'flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
|
|
className,
|
|
)}
|
|
{...rest}
|
|
/>
|