Skip to content

useExternalStyles

Import

import { mix, useExternalStyles, BoltElement } from 'c/bolt';

Usage

export default class myLwc extends mix(
[useExternalStyles, styles],
BoltElement
) { }

Methods

Constructor(styles) : Constructor

NameTypeDescription
stylesstringString containing the css to injects

Example

export default class myLwc extends mix(
[useExternalStyles, `p{color:red}`],
BoltElement
) { }
<template>
<div lwc:ref="style" />
</template>