UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

17 lines (16 loc) 707 B
import type { IconProp } from "@fortawesome/fontawesome-svg-core"; import type { PropsFor } from "../../types.js"; export type AccordionActionProps = PropsFor<"button", { /** Font Awesome icon reference (or string if using library) */ icon: IconProp; /** Label text for a11y screen readers */ "aria-label": string; /** Click event function */ onClick: React.MouseEventHandler<HTMLButtonElement>; }>; /** * Button suitable for use with `<Accordion.Item action>` prop * @visibleName Accordion.Action */ declare const AccordionAction: import("react").ForwardRefExoticComponent<AccordionActionProps & import("react").RefAttributes<HTMLButtonElement>>; export default AccordionAction;