20 lines
351 B
TypeScript
20 lines
351 B
TypeScript
|
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;
|
||
|
};
|