Hulian UIv0.93.5413 components0 components
  • Start
  • Components
  • Blocks
  • Pages
  • Demos
  • Changelog
ChineseEnglish
  • ComponentsComponents
  • ThemeTheme

Buttons

  • Button
  • ShimmerButton
  • InteractiveHoverButton
  • RainbowButton
  • PulsatingButton
  • RippleButton
  • ButtonGroup
  • SocialButton

Basic Inputs

  • Input
  • Textarea
  • CellEditor
  • Select
  • Checkbox
  • CheckboxGroup
  • Radio
  • Switch
  • Toggle
  • Segmented
  • Slider
  • NumberField
  • ElasticSlider

Advanced Inputs

  • MathTextarea
  • QuestionEditor
  • QuestionAnswer
  • MathField
  • SecretField
  • PasswordGenerator
  • Combobox
  • RemoteSelect
  • Listbox
  • Mentions
  • InputOTP
  • Rating
  • Upload
  • RegionSelect
  • ImageCropper
  • ScopeMatrix
  • Transfer
  • Cascader
  • TreeSelect
  • RegionCascader
  • CountrySelect
  • MarkdownEditor
  • Novel editor
  • RichTextEditor
  • CodeEditor
  • IssueReporter
  • ColorPicker
  • ColorField
  • ColorSwatchPicker
  • Choicebox
  • EmojiPicker
  • VoiceRecord
  • IconPicker
  • InspectorPanel

Date and Time

  • Calendar
  • DatePicker
  • DateTimePicker
  • DateRangePicker
  • TimePicker
  • TimeField

Form Frameworks

  • Form
  • ModalForm / DrawerForm
  • ProForm
  • StepsForm
  • LoginForm
  • AuthPanel
  • ClickCaptcha
  • Label
  • Field
  • SearchForm

EmojiPicker

emoji-picker

Searches and selects emoji by category, including a recent-use section.

Usage

Basic usage

Category tab + keyword search, onSelect gets the selected emoji character.

Smileys & emotion
tsx
<EmojiPicker onSelect={(e) => insert(e)} />

Preset Recently Used + Hide Search

Controlled transmission recent pins common emoticons; searchable=false removes the search box.

Recently used
Smileys & emotion
tsx
<EmojiPicker
  searchable={false}
  recent={["🔥", "💯", "👍", "🎉", "❤️"]}
  onSelect={(e) => insert(e)}
/>

More compact (6 columns)

columns adjusts the number of each line, and className narrows the overall width.

Smileys & emotion
tsx
<EmojiPicker columns={6} className="w-60" onSelect={(e) => insert(e)} />

When to use

Use EmojiPicker beside a chat or comment input. It includes searchable emoji data across seven categories with Chinese and English keywords. The component is a panel only; wrap it in Popover or another overlay for trigger and positioning behavior.

Search, empty-state, recent-section, and category labels follow the nearest ConfigProvider locale (zhCN by default, or enUS). A supplied searchPlaceholder overrides the localized default.

Import

ts
import { EmojiPicker, EMOJI_CATEGORIES, ALL_EMOJI } from "@hulianui/ui"

Props

NameTypeDefaultDescription
columnsnumber8Number of grid columns
searchablebooleantrueWhether to display the search box
defaultCategorystringfirst categoryInitial classification key
recentstring[]-Controlled "recently used" list; if omitted, the component is maintained internally
searchPlaceholderstring"\u641c\u7d22\u8868\u60c5"Search placeholder; the built-in Chinese copy means “Search emoji.”
classNamestring-supports to container

Events

EventTypeDescription
onSelect(emoji: string) => voidSelect the callback of an emoji, the parameter is the emoji character

Usage guidelines

  • Passing recent enables controlled mode. Maintain it from onSelect; when omitted, the component updates recent emoji internally.
  • EmojiPicker has no trigger or popup positioning. Compose it with Popover for a popup button.

Related

SecretField · Combobox · Listbox · Mentions · InputOTP · Rating

Playground

Smileys & emotion
<EmojiPicker onSelect={(e) => insert(e)} />
PreviousChoiceboxFormsNextVoiceRecord

On this page

  • Usage
  • Documentation
    • When to use
    • Import
    • Props
    • Events
    • Usage guidelines
    • Related
  • Playground