ZUI

Search documentation

Find a page or a heading.

Emoji Appearance Toggle Group

A single-select row of swatches for choosing the Fluent Emoji artwork style, each previewing the same sample emoji in its own style.

tsx

Installation

bash

Usage

tsx
tsx

It renders one EmojiAppearanceToggleGroupItem per style the app offers; the preview emoji is the selector, so a style is always chosen. This is an app-level appearance control, not the emoji glyph picker: the style is a global preference the consumer persists and applies app-wide with setFluentEmojiStyle. Use it to choose that style; for picking an emoji glyph, use Emoji Picker.

Composition

text

API reference

EmojiAppearanceToggleGroup

Renders shadcn's ToggleGroup and takes every prop it takes except value, defaultValue, onValueChange and multiple, plus:

Binds Base UI's array value to the lone style and ignores a deselect, so a style is always chosen. It defaults variant to outline and aria-label to "Emoji style", keeps the toggle group's default spacing, and wraps its swatches onto further rows when narrower than they are. It sets data-slot="emoji-appearance-toggle-group".

EmojiAppearanceToggleGroupItem

Renders shadcn's ToggleGroupItem and takes every prop it takes except value, plus:

One swatch: draws the sample emoji, hidden from assistive technology, in value's style (an anim swatch plays its frames) before the consumer's label (children), which names the swatch; the preview is drawn at size-6 (24px), and the mono artwork inverts in the dark theme. It sets data-slot="emoji-appearance-toggle-group-item".