jss
package jss
- Alphabetic
- By Inheritance
- jss
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait AddRuleOptions extends Object
- Annotations
- @JSType()
- type ClassNamesTag = Object
An object that list classnames.
An object that list classnames. Values should be strings but this is not enforced with types. Objects with this tag are usually annotated with
@js.native
. This is output of some function that creates the styles indexed by a string name used as a class name in react components e.g. Stylesheet.addRule. - trait IdOptions extends Object
- Annotations
- @JSType()
- trait JSS extends Object
- Annotations
- @JSType() @native()
- trait JssOptions extends Object
- Annotations
- @JSType()
- type JssStyle = |[JssStyleBase, JssStyleArray]
- trait JssStyleArray extends Array[JssStyleBase]
- Annotations
- @JSType()
- type JssStyleBase = |[|[|[StyleAttr, String], Dynamic], Object]
- trait Plugin extends Object
- Annotations
- @JSType() @native()
- trait Rule extends Object
- Annotations
- @JSType() @native()
- trait RuleOptions extends Object
- Annotations
- @JSType() @native()
- type RuleTag = Object
An object that itemizes JssStyles.
An object that itemizes JssStyles. You can create this as a dictionary or as a scala.js defined js object. The idea is that there is a set of string => JssStyle. scala.js cannot enforce RuleTag to have specific types on its properties. The name could be an element name like button or a component name such as root. You define your specific styles in an object that inherits from this tag.
- trait Stylesheet extends Object
- Annotations
- @JSType() @native()
- trait StylesheetFactoryOptions extends Object
- Annotations
- @JSType()
- trait Theme extends Object
- Annotations
- @JSType() @native()
Value Members
- val _jss: JSS
- def create(config: UndefOr[JssOptions] = js.undefined): JSS
- def jssPreset(): JssOptions
Presets I think are the right ones to use.
Presets I think are the right ones to use. These contrast with the jssPreset provded in mui or the preset from "jss-preset-default".
- val linkTrue: Object with StylesheetFactoryOptions
link = true StylesheetOptions so you can updated/remove a rule once added to a Stylesheet.
- case object BuildInfo extends Product with Serializable
This object was generated by sbt-buildinfo.
- object JssPluginCache extends Object
- Annotations
- @native() @JSImport("jss-plugin-cache", JSImport.Default)
- object JssPluginCamelCase extends Object
- Annotations
- @native() @JSImport("jss-plugin-camel-case", JSImport.Default)
- object JssPluginCompose extends Object
- Annotations
- @native() @JSImport("jss-plugin-compose", JSImport.Default)
- object JssPluginDefaultUnit extends Object
- Annotations
- @native() @JSImport("jss-plugin-default-unit", JSImport.Default)
- object JssPluginExpand extends Object
- Annotations
- @native() @JSImport("jss-plugin-expand", JSImport.Default)
- object JssPluginExtend extends Object
- Annotations
- @native() @JSImport("jss-plugin-extend", JSImport.Default)
- object JssPluginGlobal extends Object
- Annotations
- @native() @JSImport("jss-plugin-global", JSImport.Default)
- object JssPluginNested extends Object
- Annotations
- @native() @JSImport("jss-plugin-nested", JSImport.Default)
- object JssPluginPropsSort extends Object
- Annotations
- @native() @JSImport("jss-plugin-props-sort", JSImport.Default)
- object JssPluginRuleValueFunction extends Object
- Annotations
- @native() @JSImport("jss-plugin-rule-value-function", JSImport.Default)
- object JssPluginVendorPrefixer extends Object
- Annotations
- @native() @JSImport("jss-plugin-vendor-prefixer", JSImport.Default)
- object ReactJSS extends Object
- Annotations
- @native() @JSImport("react-jss", JSImport.Namespace)
- object ThemeProvider
- object createUseStyles extends Object
Return a useStyles() hook.
Return a useStyles() hook. The return value is a js function to call with prop arguments.
- Annotations
- @native() @JSImport("react-jss", "createUseStyles")
- object createUseStyles0 extends Object
Return a useStyles() hook.
Return a useStyles() hook. The return value is a js function to call with no arguments.
- Annotations
- @native() @JSImport("react-jss", "createUseStyles")
- object preset extends Object
- Annotations
- @native() @JSImport("jss-preset-default", JSImport.Default)
- object theming extends Object
- Annotations
- @native() @JSImport("theming", JSImport.Namespace)