@primer/react
Version:
An implementation of GitHub's Primer Design System using React
21 lines • 1.05 kB
TypeScript
import type { ElementType } from 'react';
import type { ForwardRefComponent as PolymorphicForwardRefComponent } from '../utils/polymorphic';
import type { SlotMarker } from '../utils/types/Slots';
import type { ActionListTrailingActionProps } from './TrailingAction';
/**
* 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.
*/
export type ActionListGroupHeadingTrailingActionProps = Omit<ActionListTrailingActionProps, 'icon'> & {
icon: ElementType;
};
export declare const GroupHeadingTrailingAction: PolymorphicForwardRefComponent<"a" | "button", ActionListGroupHeadingTrailingActionProps> & {
__SLOT__?: SlotMarker;
displayName?: string;
};
//# sourceMappingURL=GroupHeadingTrailingAction.d.ts.map