diff --git a/components/lib/usestyle/UseStyle.d.ts b/components/lib/usestyle/UseStyle.d.ts new file mode 100644 index 000000000..d0111f07d --- /dev/null +++ b/components/lib/usestyle/UseStyle.d.ts @@ -0,0 +1,19 @@ +export interface StyleOptions { + document?: HTMLElement; + immediate?: boolean; + manual?: boolean; + name?: string; + id?: string; + media?: string; +} + +export declare function useStyle( + css: string, + options?: StyleOptions +): { + id: string; + css: any; + unload: () => void; + load: () => void; + isLoaded: boolean; +};