Type alias DropdownItem

DropdownItem: {
    disabled?: boolean;
    dismissKeyboardOnPress?: boolean;
    divider?: boolean;
    icon?: CarbonIcon;
    iconColor?: string;
    id?: string;
    text: string;
    textBreakMode?: TextBreakModes;
    textType?: TextTypes;
}

An item to pass to the Dropdown component

Type declaration

  • Optional disabled?: boolean

    Indicate if item is disabled

  • Optional dismissKeyboardOnPress?: boolean

    Indicate if keyboard should be dismissed onPress

  • Optional divider?: boolean

    Indicate that divider should be rendered (does not apply to last item)

  • Optional icon?: CarbonIcon

    Set to an icon from Carbon (size 20).

  • Optional iconColor?: string

    Color of the icon (default is primary text)

  • Optional id?: string

    ID for tracking items

  • text: string

    Text to render

  • Optional textBreakMode?: TextBreakModes

    Break mode for text. Default is to wrap text

  • Optional textType?: TextTypes

    Text type to render (Standard is default. Normally only body 01 or 02 should be used)

Generated using TypeDoc