Skip to main content
Version: 1.x

@microsoft/fast-element > StyleTarget

StyleTarget interface

A node that can be targeted by styles.

Signature:
export interface StyleTarget 

Properties

PropertyTypeDescription
adoptedStyleSheetsCSSStyleSheet[]Stylesheets to be adopted by the node.

Methods

MethodDescription
append(styles)Adds styles to the target by appending the styles.
prepend(styles)Adds styles to the target by prepending the styles.
querySelectorAll(selectors)Returns all element descendants of node that match selectors.
removeChild(styles)Removes styles from the target.