@uva-glass/component-library
Version:
React components UvA
18 lines (17 loc) • 899 B
TypeScript
import { ReactElement } from 'react';
import { IconProps } from 'components/Icon';
import { UIButtonVariant } from 'types/UserInterface';
export interface ActionListProps {
/** The label that is displayed before the icon. */
label: string;
/** The icon that is shown in front of the label. */
prefixIcon?: IconProps['name'];
/** The icon that is shown to toggle the menu. If none is specified, CheveronUp and CheveronDown is used depending on whether the menu is opened or closed. */
iconName?: IconProps['name'];
/** Determines the button variant. */
variant?: UIButtonVariant;
/** The child component(s). */
children: ReactElement | ReactElement[];
}
/** A component to show an action list to toggle a menu. */
export declare function ActionList({ label, prefixIcon, iconName, variant, children }: ActionListProps): import("react/jsx-runtime").JSX.Element;