Class StyleProvider<T, R>
Constructors
constructor
-
Parameters
-
fallback: T
-
Optional converter: undefined | function
-
Properties
Private converter
converter: function
Private fallback
fallback: T
Private mount
mount: string
Private renderAll
renderAll: boolean
Private Optional renderedFallback
Methods
Private dashCase
- dashCase(s: string): string
-
Parameters
Returns string
Private fields
- fields(fallback: string[], custom: string[]): string
-
Parameters
-
fallback: string[]
-
custom: string[]
Returns string
Private generate
- generate(styles: DeepPartial<T>, renderAll: boolean): R
Private parser
-
Type parameters
Parameters
-
styles: S
-
-
Optional prefix: undefined | string
styleProvider
- styleProvider(styles?: DeepPartial<T>, renderAll?: boolean): R
-
Parameters
-
Default value styles: DeepPartial<T> = emptyStyles
-
Default value renderAll: boolean = this.renderAll
Returns R
Construct your own style provider with a custom fallback style object