CSS-in-JS

You can use any CSS-in-JS frameworks with Grid.js. In this example, we are using Emotion to style our Grid.js instance.

note

โ€œCSS-in-JSโ€ refers to a pattern where CSS is composed using JavaScript instead of defined in external files.

Import your favorite CSS-in-JS tool first:

import { css } from 'emotion';

And then use the className config to connect them together:

Live Editor
Result

info

See className config for more details.

Last updated on by Afshin Mehrabani