chayns-emoji-picker
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

chayns-emoji-picker

An emoji-picker for use within chayns® applications built with React.

MIT License npm version Open GitHub issues

Get Started Documentation Contributing


chayns-emoji-picker is a fully-featured and accessible emoji-picker for chayns® applications. It is built and meant to be used with React.

The component in action

❯ Get Started

First off, install the package:

# Yarn
yarn add chayns-emoji-picker

# NPM
npm install chayns-emoji-picker

Now, you can import the <EmojiPicker> component into your components:

import React, { ReactElement } from 'react';
import { EmojiPicker } from 'chayns-emoji-picker';

export function MyComponent() {
    const [showEmojiPicker, setShowEmojiPicker] = useState(false);

    function handleOpenEmojiPicker() {
        setShowEmojiPicker(true);
    }

    function handleCloseEmojiPicker() {
        setShowEmojiPicker(false);
    }

    return (
        <button
            style={{ position: 'relative' }}
            onClick={handleOpenEmojiPicker}
        >
            Show Emoji-Picker
            <EmojiPicker
                show={showEmojiPicker}
                onHide={handleCloseEmojiPicker}
            />
        </button>
    );
}

For a full reference and documentation of all props, visit the docs.


❯ Documentation

Visit tobitsoftware.github.io/chayns-emoji-picker/ to read the full documentation.


❯ Contributing

You can find information about contributing to the project in our CONTRIBUTING.md document.

Readme

Keywords

none

Package Sidebar

Install

npm i chayns-emoji-picker

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

1.63 MB

Total Files

24

Last publish

Collaborators

  • leodr