UNPKG

carbon-react

Version:

A library of reusable React components for easily building user interfaces.

16 lines (15 loc) 784 B
import React from "react"; import { WidthProps } from "styled-system"; import { SplitButtonProps } from "../split-button"; export interface MultiActionButtonProps extends WidthProps, Omit<SplitButtonProps, "buttonType" | "iconPosition" | "iconType"> { /** Button type: "primary" | "secondary" | "tertiary" */ buttonType?: "primary" | "secondary" | "tertiary"; /** Second text child, renders under main text, only when size is "large" */ subtext?: string; } export type MultiActionButtonHandle = { /** Programmatically focus the main button */ focusMainButton: () => void; } | null; export declare const MultiActionButton: React.ForwardRefExoticComponent<MultiActionButtonProps & React.RefAttributes<MultiActionButtonHandle>>; export default MultiActionButton;