Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time

Default preset for JSS with selected plugins

Preset allows a quick setup with default settings and a default plugins so that you don't need to setup plugins manually.



It exports a default function which accepts options. Options is a map of plugin name in camel case and plugin options as value.

It returns a JSS options object, which you can pass to JSS constructor or the setup.

import preset from 'jss-preset-default'

preset({somePlugin: {}})

Setup global JSS instance

import jss from 'jss'
import preset from 'jss-preset-default'


Setup custom JSS instance

import {create} from 'jss'
import preset from 'jss-preset-default'

const jss = create(preset())