injectFlowbiteThemeState
No documentation has been provided.
Presentation
const injectFlowbiteThemeState : <
U = {
readonly config : FlowbiteThemeConfig ;
readonly localStorageKey: InputSignal <string>;
readonly currentTheme: InputSignal <FlowbiteThemes >;
readonly type: InputSignal <
{ type: "class" } | { type: "attr"; name: string }
>;
getLocalStorageTheme: () => FlowbiteThemes | undefined;
toggleTheme: (theme?: FlowbiteThemes | undefined) => void;
setTheme: (theme: FlowbiteThemes ) => void;
readonly state : CreatedState<Theme >;
},
>(
injectOptions?: InjectOptions | undefined,
) => Signal <State<U>>;