geoview-core - v2.2.0
    Preparing search index...

    Variable ButtonDropDownConst

    ButtonDropDown: (props: ButtonDropDownPropsExtend) => Element = ButtonDropDownUI

    Type Declaration

      • (props: ButtonDropDownPropsExtend): Element
      • Split button dropdown component for selecting from multiple options.

        Combines a main action button with a dropdown menu to provide quick access to the current selection while allowing users to switch between alternatives. Uses Material-UI's ButtonGroup, Popper, and MenuItem components. Manages dropdown open/close state and notifies parent of selection changes via callback.

        Parameters

        Returns Element

        Split button with dropdown menu that appears below on toggle

        // Basic usage
        <ButtonDropDown
        options={['Option 1', 'Option 2', 'Option 3']}
        onButtonClick={(index, text) => console.log(text)}
        />

        // With custom styling
        <ButtonDropDown
        options={['Small', 'Medium', 'Large']}
        sx={{
        backgroundColor: 'primary.light'
        }}
        />