Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

giggl/emoji

Open more actions menu

Repository files navigation

work in progress!

@giggl/emoji

Giggl emoji picker is an accessible emoji picker for React built in TypeScript.

SSR

@giggl/emoji uses the amazing @stitches/react styling library under the hood. It exports a function called getCssText which can be used to render a style tag on the server. Documentation on that can be found at stitches.dev/docs/server-side-rendering.

A basic implementation (in Next.js) is as follows

import React from 'react';
import NextDocument, {Html, Head, Main, NextScript} from 'next/document';
import {getCssText} from '@giggl/emoji';

export default class Document extends NextDocument {
	render() {
		return (
			<Html lang="en">
				<Head>
					<style
						id="stitches"
						dangerouslySetInnerHTML={{__html: getCssText()}}
					/>
				</Head>
				<body>
					<Main />
					<NextScript />
				</body>
			</Html>
		);
	}
}

Development

This repository uses preconstruct for managing its monorepo setup. To start development, you can simply run yarn dev to build project symlinks. Afterwards, you can run yarn example to start the ./apps/example project which will hot reload when you edit the ./packages/emoji package.

About

React emoji picker powered by Twemoji. Maintained by the Giggl team

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.