<script lang="ts">
  import { cn, type WithElementRef } from '@hister/components/utils';
  import type { HTMLAttributes } from 'svelte/elements';

  let {
    ref = $bindable(null),
    class: className,
    children,
    ...restProps
  }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();
</script>

<kbd
  bind:this={ref}
  data-slot="kbd-group"
  class={cn('inline-flex items-center gap-1', className)}
  {...restProps}
>
  {@render children?.()}
</kbd>
