Zurück zum Ranking

liveblocks/frimousse

TypeScriptfrimousse.liveblocks.io

A lightweight, unstyled, and composable emoji picker for React.

componentemojiemoji-pickeremojibaseliveblocksreactunstyled
Sterne-Wachstum
Sterne
1.8k
Forks
41
Wochenwachstum
Issues
14
5001k1.5k
Sept. 25Dez. 25Apr. 26Juli 26
Artefaktenpmnpm install frimousse
README

Frimousse Frimousse

npm downloads size tests license

A lightweight, unstyled, and composable emoji picker for React.

  • ⚡️ Lightweight and fast: Dependency-free, tree-shakable, and virtualized with minimal re-renders
  • 🎨 Unstyled and composable: Bring your own styles and compose parts as you want
  • 🔄 Always up-to-date: Latest emoji data is fetched when needed and cached locally
  • 🔣 No � symbols: Unsupported emojis are automatically hidden
  • ♿️ Accessible: Keyboard navigable and screen reader-friendly
Various emoji pickers.

Installation

npm i frimousse

If you are using shadcn/ui, you can also install it as a pre-built component via the shadcn CLI.

npx shadcn@latest add https://frimousse.liveblocks.io/r/emoji-picker

Learn more in the shadcn/ui section.

Usage

Import the EmojiPicker parts and create your own component by composing them.

import { EmojiPicker } from "frimousse";

export function MyEmojiPicker() {
  return (
    <EmojiPicker.Root>
      <EmojiPicker.Search />
      <EmojiPicker.Viewport>
        <EmojiPicker.Loading>Loading…</EmojiPicker.Loading>
        <EmojiPicker.Empty>No emoji found.</EmojiPicker.Empty>
        <EmojiPicker.List />
      </EmojiPicker.Viewport>
    </EmojiPicker.Root>
  );
}

Apart from a few sizing and overflow defaults, the parts don’t have any styles out-of-the-box. Being composable, you can bring your own styles and apply them however you want: Tailwind CSS, CSS-in-JS, vanilla CSS via inline styles, classes, or by targeting the [frimousse-*] attributes present on each part.

You might want to use it in a popover rather than on its own. Frimousse only provides the emoji picker itself so if you don’t have a popover component in your app yet, there are several libraries available: Radix UI, Base UI, Headless UI, and React Aria, to name a few.

shadcn/ui

If you are using shadcn/ui, you can install a pre-built version which integrates with the existing shadcn/ui variables via the shadcn CLI.

npx shadcn@latest add https://frimousse.liveblocks.io/r/emoji-picker

It can be composed and combined with other shadcn/ui components like Popover.

Documentation

Find the full documentation and examples on frimousse.liveblocks.io.

Compatibility

  • React 18 and 19
  • TypeScript 5.1 and above

Miscellaneous

The name “frimousse” means “little face” in French, and it can also refer to smileys and emoticons.

The emoji picker component was originally created for the Liveblocks Comments default components, within @liveblocks/react-ui.

Credits

The emoji data is based on Emojibase.

Contributing

All contributions are welcome! If you find a bug or have a feature request, feel free to create an issue or a PR.

The project is setup as a monorepo with the frimousse package at the root and frimousse.liveblocks.io in the site directory.

Development

Install dependencies and start development builds from the root.

npm i
npm run dev

The site can be used as a development playground since it’s built with the root package via Turborepo.

npm run dev:site

Tests

The package has 95%+ test coverage with Vitest. Some tests use Vitest’s browser mode with Playwright, make sure to install the required browser first.

npx playwright install chromium

Run the tests.

npm run test:coverage

Releases

Releases are triggered from a GitHub action via release-it, and continuous releases are automatically triggered for every commit in PRs via pkg.pr.new.

Ähnliche Repositories
saadeghi/daisyui

🌼 🌼 🌼 🌼 🌼  The most popular, free and open-source Tailwind CSS component library

SvelteMIT Licensetailwind-cssui-library
daisyui.com
41.8k1.7k
chakra-ui/chakra-ui

Chakra UI is a component system for building SaaS products with speed ⚡️

TypeScriptnpmMIT Licensechakra-uireact
chakra-ui.com
40.5k3.6k
bevacqua/dragula

:ok_hand: Drag and drop so simple it hurts

JavaScriptnpmMIT Licensejavascriptfront-end
bevacqua.github.io/dragula/
22.1k1.9k
handsontable/handsontable

JavaScript Data Grid / Data Table with a Spreadsheet Look & Feel. Works with React, Angular, and Vue. Supported by the Handsontable team ⚡

JavaScriptnpmOtherexcelcrud-operations
handsontable.com/docs
22k3.2k
SortableJS/Vue.Draggable

Vue drag-and-drop component based on Sortable.js

JavaScriptnpmMIT Licensedrag-and-dropvue
sortablejs.github.io/Vue.Draggable/
20.6k2.8k
ElemeFE/mint-ui

Mobile UI elements for Vue.js

VueMIT Licensevuevue-components
mint-ui.github.io
16.4k3.5k
FaridSafi/react-native-gifted-chat

💬 The most complete chat UI for React Native

TypeScriptnpmMIT Licensereact-nativechat
gifted.chat
14.4k3.6k
welldone-software/why-did-you-render

why-did-you-render by Welldone Software monkey patches React to notify you about potentially avoidable re-renders. (Works with React Native as well.)

JavaScriptnpmMIT Licensereactcomponent
npmjs.com/package/@welldone-software/why-did-you-render
12.5k226
MudBlazor/MudBlazor

Blazor Component Library based on Material Design principles. Do more with Blazor, utilizing CSS and keeping JavaScript to a bare minimum.

C#MIT Licenseblazormaterial
mudblazor.com
10.5k1.7k
symfony/console

Eases the creation of beautiful and testable command line interfaces

PHPPackagistMIT Licensephpsymfony
symfony.com/console
9.8k266
missive/emoji-mart

🏪 One component to pick them all

TypeScriptnpmMIT Licenseemoji-pickeremoji
missiveapp.com/open/emoji-mart
9.4k904
symfony/http-foundation

Defines an object-oriented layer for the HTTP specification

PHPPackagistMIT Licensephpsymfony
symfony.com/http-foundation
8.6k307