Importing styles into a document or a shadow root.
Parameters:
Name | Type | Description |
---|---|---|
node |
HTMLElement | |
inline |
Object |
- Source:
Example
import importStyle from 'xblocks-core/utils/importStyle';
importStyle(node, {
'tag-name': '.test { color: #000; }'
})