UNPKG

@twilio/flex-ui

Version:

Twilio Flex UI

18 lines (17 loc) 882 B
import { BadgeVariants } from "../../../flex-ui-core/src"; import { TaskContextProps } from "../../context"; import { TaskProfileConnectorContextProps } from "../../context/ProfileConnectorContext"; import { BaseTaskListItemProps as TaskListItemProps } from "../../../internal-flex-commons/src"; export { TaskListItemSize } from "../../../internal-flex-commons/src"; export { TaskListItemProps }; /** * Properties of TaskListItem. * @typedef {TaskListItemProps | TaskContextProps} TaskListItem.TaskListItemChildrenProps * @property { { children: number, variant: BadgeVariants } } [Badge] Set of properties for internal Badge element customisable by TaskChannel */ export interface TaskListItemChildrenProps extends TaskListItemProps, TaskContextProps, TaskProfileConnectorContextProps { readonly Badge?: { children: number; variant: BadgeVariants; }; }