mirror of https://github.com/TZGyn/shortener
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
628 B
Svelte
25 lines
628 B
Svelte
<script lang="ts">
|
|
import { Button as ButtonPrimitive } from 'bits-ui'
|
|
import { cn } from '$lib/utils'
|
|
import { buttonVariants, type Props, type Events } from '.'
|
|
|
|
type $$Props = Props
|
|
type $$Events = Events
|
|
|
|
let className: $$Props['class'] = undefined
|
|
export let variant: $$Props['variant'] = 'default'
|
|
export let size: $$Props['size'] = 'default'
|
|
export let builders: $$Props['builders'] = []
|
|
export { className as class }
|
|
</script>
|
|
|
|
<ButtonPrimitive.Root
|
|
{builders}
|
|
class={cn(buttonVariants({ variant, size, className }))}
|
|
type="button"
|
|
{...$$restProps}
|
|
on:click
|
|
on:keydown>
|
|
<slot />
|
|
</ButtonPrimitive.Root>
|