Options
All
  • Public
  • Public/Protected
  • All
Menu

Options for CSS injection

Hierarchy

  • InjectOptions

Index

Properties

Optional attributes

attributes?: Record<string, string>

Set attributes of injected <style> tag(s)

  • ex.: {"id":"global"}

Optional container

container?: string

Container for <style> tag(s) injection

default

"head"

Optional prepend

prepend?: boolean

Insert <style> tag(s) to the beginning of the container

default

false

Optional singleTag

singleTag?: boolean

Inject CSS into single <style> tag only

default

false

Optional treeshakeable

treeshakeable?: boolean

Makes injector treeshakeable, as it is only called when either classes are referenced directly, or inject function is called from the default export.

Incompatible with namedExports option.

Generated using TypeDoc