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/css';
And then use the className
config to connect them together:
Live Editor
Result
Loading...
info
See className config for more details.