add InputGroup component
This commit is contained in:
12
src/lib/InputGroup.svelte
Normal file
12
src/lib/InputGroup.svelte
Normal file
@@ -0,0 +1,12 @@
|
||||
<script lang="ts">
|
||||
import type { ClassValue } from 'svelte/elements';
|
||||
|
||||
interface Props {
|
||||
class?: ClassValue | undefined | null;
|
||||
children?: import('svelte').Snippet;
|
||||
}
|
||||
|
||||
let { class: classList, children }: Props = $props();
|
||||
</script>
|
||||
|
||||
<div class={['mt-4 flex min-w-80 items-end gap-2', classList]}>{@render children?.()}</div>
|
||||
@@ -5,6 +5,7 @@ export { default as Combobox } from './Combobox.svelte';
|
||||
export { default as FramelessButton } from './FramelessButton.svelte';
|
||||
export { default as InjectGoogleMaps } from './InjectGoogleMaps.svelte';
|
||||
export { default as InjectUmami } from './InjectUmami.svelte';
|
||||
export { default as InputGroup } from './InputGroup.svelte';
|
||||
export { default as Label } from './Label.svelte';
|
||||
export { default as Link } from './Link.svelte';
|
||||
export { default as PhoneInput } from './PhoneInput.svelte';
|
||||
|
||||
Reference in New Issue
Block a user