UNPKG

1.44 kBTypeScriptView Raw
1import * as React from 'react';
2import { DropdownItemProps } from '../Dropdown';
3export interface ApplicationLauncherItemProps {
4 /** Icon rendered before the text */
5 icon?: React.ReactNode;
6 /** If clicking on the item should open the page in a separate window */
7 isExternal?: boolean;
8 /** Tooltip to display when hovered over the item */
9 tooltip?: React.ReactNode;
10 /** Additional tooltip props forwarded to the Tooltip component */
11 tooltipProps?: any;
12 /** A ReactElement to render, or a string to use as the component tag.
13 * Example: component={<Link to="/components/alert/">Alert</Link>}
14 * Example: component="button"
15 */
16 component?: React.ReactNode;
17 /** Flag indicating if the item is favorited */
18 isFavorite?: boolean;
19 /** Aria label text for favoritable button when favorited */
20 ariaIsFavoriteLabel?: string;
21 /** Aria label text for favoritable button when not favorited */
22 ariaIsNotFavoriteLabel?: string;
23 /** ID of the item. Required for tracking favorites. */
24 id?: string;
25 customChild?: React.ReactNode;
26 /** Flag indicating if hitting enter triggers an arrow down key press. Automatically passed to favorites list items. */
27 enterTriggersArrowDown?: boolean;
28}
29export declare const ApplicationLauncherItem: React.FunctionComponent<ApplicationLauncherItemProps & DropdownItemProps>;
30//# sourceMappingURL=ApplicationLauncherItem.d.ts.map
\No newline at end of file