Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/mrgnw/ananas. learn multiple languages at once ananas.xcc.es
Something went wrong. Try again.
12345678910111213141516171819202122232425262728<script lang="ts"> import { Command as CommandPrimitive } from "cmdk-sv"; import { cn } from "$lib/utils.js";
type $$Props = CommandPrimitive.ItemProps;
interface Props { [key: string]: any }
let { asChild = false, class: className = undefined, children, ...rest }: Props = $props(); </script>
<CommandPrimitive.Item {asChild} class={cn( "aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className )} {...rest} > {#snippet children({ action, attrs })} {@render children?.({ action, attrs, })} {/snippet}</CommandPrimitive.Item>