UNPKG

styled-components

Version:

CSS for the <Component> Age. Style components your way with speed, strong typing, and flexibility.

8 lines (7 loc) 523 B
import { InsertionTarget } from '../types'; /** Create a style element inside `target` or <head> after the last */ export declare const makeStyleTag: (target?: InsertionTarget | undefined) => HTMLStyleElement; /** Get the CSSStyleSheet instance for a given style element */ export declare const getSheet: (tag: HTMLStyleElement) => CSSStyleSheet; /** Remove a GlobalStyle's SSR-rendered inline style tag(s) from the DOM */ export declare const removeGlobalStyleTag: (componentId: string, target?: InsertionTarget) => void;