Skip to content

giggl/emoji

Folders and files

NameName
Last commit message
Last commit date
Oct 11, 2021
Nov 11, 2021
Feb 21, 2022
Mar 19, 2022
Mar 1, 2022
Oct 11, 2021
Oct 23, 2021
Feb 22, 2022
Nov 15, 2021
Feb 22, 2022
Feb 21, 2022
Oct 11, 2021
Oct 11, 2021
Oct 27, 2021
Feb 22, 2022
Mar 21, 2022
Nov 11, 2021
Oct 10, 2021
Oct 27, 2021
Mar 21, 2022

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.