Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LitStyleProvider<T>

Construct your own lit style provider with a custom fallback style object

Type parameters

  • T: __type

Hierarchy

  • StyleProvider<T, CSSResult>
    • LitStyleProvider

Index

Constructors

Properties

Constructors

constructor

  • Parameters

    • fallback: T

    Returns LitStyleProvider

Properties

rootStyleProvider

rootStyleProvider: function

Generate the root CSS string from a styles object if no cached version is found

Type declaration

    • (styles?: DeepPartial<T> | undefined): CSSResult
    • Parameters

      • Optional styles: DeepPartial<T> | undefined

      Returns CSSResult

styleProvider

styleProvider: function

Generate a CSS string from a styles object if no cached version is found

Type declaration

    • (styles?: DeepPartial<T>, renderAll?: undefined | false | true): CSSResult
    • Parameters

      • Optional styles: DeepPartial<T>
      • Optional renderAll: undefined | false | true

      Returns CSSResult

Generated using TypeDoc