Options
All
  • Public
  • Public/Protected
  • All
Menu

Options for CSS injection

Hierarchy

  • InjectOptions

Index

Properties

attributes?: Record<string, string>

Set attributes of injected <style> tag(s)

  • ex.: {"id":"global"}
container?: string

Container for <style> tag(s) injection

default

"head"

prepend?: boolean

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

default

false

singleTag?: boolean

Inject CSS into single <style> tag only

default

false

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