UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

18 lines (17 loc) 750 B
import { ActionListTrailingActionProps } from "./TrailingAction.js"; import { ElementType } from "react"; //#region src/ActionList/GroupHeadingTrailingAction.d.ts /** * Props for `ActionList.GroupHeading.TrailingAction`. * * Mirrors the shape of `ActionList.TrailingAction` so the API is consistent * across `ActionList.Item` and `ActionList.GroupHeading`. The only * difference is that `icon` is required here — group headings are not * interactive on their own, so the action must always render as a square * IconButton with a uniform hit target. */ type ActionListGroupHeadingTrailingActionProps = Omit<ActionListTrailingActionProps, 'icon'> & { icon: ElementType; }; //#endregion export { ActionListGroupHeadingTrailingActionProps };