blessed-components - v1.20.0
    Preparing search index...

    Interface ButtonData

    Stateful data accepted by the Blessed button adapter.

    interface ButtonData {
        capabilities?: Pick<TerminalCapabilities, "colorLevel">;
        disabled?: boolean;
        disabledBackgroundTone?: keyof ThemeColors;
        disabledTone?: keyof ThemeColors;
        focusedBackgroundTone?: keyof ThemeColors;
        focusedTone?: keyof ThemeColors;
        label: string;
        onPress?: () => void;
        backgroundTone?: keyof ThemeColors;
        tone?: keyof ThemeColors;
        theme?: Theme;
        variant?: ButtonVariant;
    }
    Index

    Properties

    capabilities?: Pick<TerminalCapabilities, "colorLevel">

    Explicit color capability used for deterministic rendering.

    disabled?: boolean

    Whether focus and activation are unavailable.

    disabledBackgroundTone?: keyof ThemeColors

    Semantic background while disabled.

    'background'

    disabledTone?: keyof ThemeColors

    Semantic foreground while disabled.

    'muted'

    focusedBackgroundTone?: keyof ThemeColors

    Semantic background while focused.

    'primary'

    focusedTone?: keyof ThemeColors

    Semantic foreground while focused.

    'foreground'

    label: string

    Non-empty, single-line action name.

    onPress?: () => void

    Called after keyboard, mouse, or imperative activation.

    backgroundTone?: keyof ThemeColors

    Semantic background while idle.

    'background'

    tone?: keyof ThemeColors

    Semantic foreground while idle.

    'foreground'

    theme?: Theme

    Semantic terminal theme.

    variant?: ButtonVariant

    Visual structure.

    'bracketed'