Skip to main content

    ToggleButtonGroup

    ToggleButtonGroup allows users to trigger actions or events with a single click anywhere within the button container. Users can also trigger a button by pressing Enter or Space while the button has focus.

    ToggleButtonGroupProps

    Signature:

    export declare type ToggleButtonGroupProps = <, (value: , event?: < | >) => | > & & & & & & { /** * The width of the ToggleButtonGroup. * @defaultValue */ width?: | | ..< & {}>; };

    Item

    The ToggleButtonGroup.Item component is used to render individual elements within the ToggleButtonGroup.

    ToggleButtonGroupItemProps

    Signature:

    export declare type ToggleButtonGroupItemProps = <, > & & & & & & { /** When a tooltip is provided, text is shown on hover. */ tooltip?: ; /** * Zero or more items in a group can be checked. * @defaultValue false * @deprecated unused, will be removed */ checked?: ; /** * Indicates if the mover is currently over the item. * @defaultValue false * @deprecated unused, will be removed */ hovered?: ; };

    Prefix

    The ToggleButtonGroup.Prefix component serves as a container for manually-placed icons that appear before the text of the ToggleButtonGroup.Item.

    ToggleButtonGroupPrefixProps

    extends,
    NameTypeDefaultDescription
    children

    Elements to be displayed in the Button Prefix slot.

    Suffix

    The ToggleButtonGroup.Suffix component serves as a container for manually-placed icons that appear after the text of the ToggleButtonGroup.Item.

    ToggleButtonGroupSuffixProps

    extends,
    NameTypeDefaultDescription
    children

    Elements to be displayed in the Button Suffix slot.

    Still have questions?
    Find answers in the Dynatrace Community