Form Emoji Select

GitHub

Emoji select connected to Form context with server validation errors.

Installation

bash
pnpm dlx shadcn@latest add @cs/form-emoji-select

Usage

tsx
import { FormEmojiSelect } from "@/components/cs/form-emoji-select"
tsx
<FormEmojiSelect name="emoji" />

API Reference

FormEmojiSelect

Emoji select connected to Form context with server validation errors.

Props

NameTypeDefaultDescription
classNamestring | undefined--
disabledboolean | undefined--
idstring | undefined--
labelstring | undefined-Visible field label.
name *string-Form field name used for submission and validation errors.
onValueChange *(emoji: string) => void-Called after the user selects an emoji.
orientation"vertical" | "horizontal" | "responsive" | null | undefined--
requiredboolean | undefined-Requires a selected value before the form can submit.
selectClassNamestring | undefined-Additional classes applied to the select trigger.
triggerReactElement<unknown, string | JSXElementConstructor<any>> | undefined-Optional replacement for the default icon trigger.
value *string | null | undefined-Currently selected emoji shown in the default trigger.