/** @packageDocumentation * @module Toolbar */ import "./Item.scss"; import * as React from "react"; import { CommonProps, SizeProps } from "@bentley/ui-core"; /** Properties of [[Item]] component. * @beta */ export interface ItemProps extends CommonProps { /** button icon. */ icon?: React.ReactNode; /** Describes if item is active. */ isActive?: boolean; /** Describes if the item is disabled. */ isDisabled?: boolean; /** Function called when the item is clicked. */ onClick?: () => void; /** Function called when a key is pressed. */ onKeyDown?: (e: React.KeyboardEvent) => void; /** Title for the item. */ title?: string; /** Function called when size is known. */ onSizeKnown?: (size: SizeProps) => void; /** A badge to draw. */ badge?: React.ReactNode; } /** Toolbar item component. Used in [[Toolbar]] component. * @beta */ export declare class Item extends React.PureComponent { render(): JSX.Element; } //# sourceMappingURL=Item.d.ts.map