primevue-mirror/components/lib/usestyle/UseStyle.d.ts

22 lines
451 B
TypeScript
Raw Normal View History

2023-07-03 22:32:41 +00:00
export interface StyleOptions {
document?: HTMLElement;
immediate?: boolean;
manual?: boolean;
name?: string;
id?: string;
media?: string;
nonce?: string;
props?: any;
2023-07-03 22:32:41 +00:00
}
2023-10-02 13:15:41 +00:00
export interface Style {
2023-07-03 22:32:41 +00:00
id: string;
2023-07-12 09:19:35 +00:00
name: string;
2023-07-03 22:32:41 +00:00
css: any;
unload: () => void;
load: (css?: string, props?: any) => void;
2023-07-03 22:32:41 +00:00
isLoaded: boolean;
2023-10-02 13:15:41 +00:00
}
export declare function useStyle(css: string, options?: StyleOptions): Style;