Interface ThemeSelectButtonProps

interface ThemeSelectButtonProps {
    darkMode?: boolean;
    dense?: boolean;
    disableHover?: boolean;
    docTheme: IDocTheme;
    icon?: ReactNode | (() => ReactNode);
    isSelected?: boolean;
    onSelectTheme: ((docTheme) => void);
    outlined?: boolean;
    parentFloat?: FloatReference;
    primary?: boolean;
    selected?: boolean;
    sx?: SxProps<Theme>;
    tooltipProps?: Omit<ExhibitTooltipProps, "children">;
}

Hierarchy (view full)

Properties

darkMode?: boolean
dense?: boolean
disableHover?: boolean
docTheme: IDocTheme
icon?: ReactNode | (() => ReactNode)

Type declaration

    • (): ReactNode
    • Returns ReactNode

isSelected?: boolean

Determines if the button is selected or not

Default Value

false
onSelectTheme: ((docTheme) => void)

Type declaration

    • (docTheme): void
    • Parameters

      Returns void

outlined?: boolean
parentFloat?: FloatReference
primary?: boolean

If the icon button is a primary icon button. This may change the color of the text and icon.

Default Value

false
selected?: boolean

If set to a boolean the button will act like a toggle.

sx?: SxProps<Theme>

MUI SX props

tooltipProps?: Omit<ExhibitTooltipProps, "children">

Tooltip properties. If this is specified then the tooltips are used. Do not provide a child as this component will be the child.