Skip to content

ThemePalette

ThemePalette(__namedParameters): ReactElement<{ ref: RefObject<OverlayRootWidget | null>; }, string | JSXElementConstructor<any>> | null

Defined in: react/components/overlay/theme-palette.tsx:139

A visual theme picker styled after HotkeyPalette. Mount it once near the root; it registers its own toggle binding and opens as a modal dialog. Moving the selection previews the theme live across the whole app; Enter keeps it, Esc (or an outside click) reverts to the theme that was active when the picker opened.

<ThemePalette /> // Ctrl+T
<ThemePalette toggleKey="ctrl+k" />

ThemePaletteProps

ReactElement<{ ref: RefObject<OverlayRootWidget | null>; }, string | JSXElementConstructor<any>> | null