# Emoji Picker ## Example ```svelte
Last picked emojis:
{#each emojis.slice(0, 5) as emoji}
{emoji}
{/each}
emojis.unshift(emoji.unicode)} />

Popover Emoji Picker

emojis.unshift(emoji.unicode)} triggerText="Emoji Picker"> {#snippet child({ props })} {/snippet} ``` ## Documentation ## Usage ```svelte console.log('selected emoji: ' + emoji.unicode)} /> console.log('selected emoji: ' + emoji.unicode)}> {#snippet child({ props })} {/snippet} ``` ## API Reference ### EmojiPicker A searchable emoji picker grid with category tabs. | Prop | Type | Default | Description | |------|------|---------|-------------| | onpicked | `(emoji: NativeEmoji) => void` | `-` | Callback invoked when an emoji is selected. | | height | `number` | `300` | The height of the picker in pixels. | | width | `number` | `344` | The width of the picker in pixels. | | columns | `number` | `8` | The number of emoji columns. | | class | `string` | `-` | Additional CSS classes to apply. | ### PopoverEmojiPicker An emoji picker wrapped in a popover. | Prop | Type | Default | Description | |------|------|---------|-------------| | onpicked | `(emoji: NativeEmoji) => void` | `-` | Callback invoked when an emoji is selected. | | open | `boolean` | `false` | Whether the popover is open. (bindable) | | triggerRef | `HTMLElement` | `-` | Reference to the trigger element. (bindable) | | children | `Snippet` | `-` | Custom trigger content. | | class | `string` | `-` | Additional CSS classes to apply. |