geoview-core
    Preparing search index...

    Variable ButtonDropDownConst

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

    Type Declaration

      • (props: ButtonDropDownPropsExtend): Element
      • A customized Material-UI Button Drop Down component.

        Parameters

        Returns Element

        A rendered ButtonDropDown component

        // 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'
        }}
        />

        For performance optimization in cases of frequent parent re-renders, consider wrapping this component with React.memo at the consumption level.