Core API Overview > @adpt/core > concatStyles
concatStyles() function
Concatenate all of the rules of the given Style elements together into a single Style element that contains all of the rules. Always returns a new Style element and does not modify the Style element parameters.
Signature:
export declare function concatStyles(...styles: AdaptElement[]): AdaptElement;
Parameters
Parameter | Type | Description |
---|---|---|
styles | AdaptElement [] | Zero or more Style elements, each containing style rules. |
Returns:
A new Style element containing the concatenation of all of the rules from the passed in Style elements.