@primer/react
Version:
An implementation of GitHub's Primer Design System using React
25 lines (24 loc) • 619 B
TypeScript
import { IconButtonProps } from "../Button/types.js";
import React from "react";
//#region src/ActionList/TrailingAction.d.ts
type ElementProps = {
as?: 'button';
href?: never;
/**
* Specify whether the action is in a loading state.
* Only available for button elements.
*/
loading?: boolean;
} | {
as: 'a';
href: string;
loading?: never;
};
type ActionListTrailingActionProps = ElementProps & {
icon?: React.ElementType;
label: string;
className?: string;
style?: React.CSSProperties;
} & Pick<IconButtonProps, 'tooltipDirection'>;
//#endregion
export { ActionListTrailingActionProps };