gestalt
Version:
A set of React UI components which enforce Pinterest's design language
24 lines (23 loc) • 821 B
TypeScript
import { ComponentProps } from 'react';
import Button from '../Button';
import ButtonLink from '../ButtonLink';
type Props = {
accessibilityLabel: string;
color: 'red' | 'gray';
href: string;
label: string;
onClick?: ComponentProps<typeof ButtonLink>['onClick'];
rel?: ComponentProps<typeof ButtonLink>['rel'];
role: 'link';
size?: ComponentProps<typeof ButtonLink>['size'];
target?: ComponentProps<typeof ButtonLink>['target'];
} | {
accessibilityLabel: string;
color: 'red' | 'gray';
label: string;
onClick: ComponentProps<typeof Button>['onClick'];
role: 'button';
size?: ComponentProps<typeof Button>['size'];
};
export default function CallToAction({ accessibilityLabel, label, size, ...props }: Props): import("react/jsx-runtime").JSX.Element;
export {};