@better-auth-ui/core
Version:
Authentication components and data utilities for [Better Auth](https://better-auth.com), available for React and Solid.
38 lines (37 loc) • 867 B
TypeScript
import { ThemeLocalization } from './theme-localization';
export type ThemePluginOptions = {
/**
* Override the plugin's default localization strings.
* @remarks `ThemeLocalization`
*/
localization?: Partial<ThemeLocalization>;
/**
* Initial theme value
*/
theme?: string;
/**
* Function to set the theme.
*/
setTheme: (theme: string) => void;
/**
* Available theme options
* @default ["system", "light", "dark"]
*/
themes?: string[];
};
export declare const themePlugin: ((options: ThemePluginOptions) => {
localization: {
appearance: string;
theme: string;
system: string;
light: string;
dark: string;
};
theme: string;
setTheme: (theme: string) => void;
themes: string[];
} & {
id: "theme";
}) & {
id: "theme";
};