@britannica/ui
Version:
Consumer style system
15 lines (14 loc) • 576 B
TypeScript
import type { ComponentPropsWithoutRef, ElementType, RefObject } from 'react';
import React from 'react';
export type ButtonProps<T extends ElementType> = ComponentPropsWithoutRef<T> & {
circle?: boolean;
color?: string;
innerRef?: RefObject<any>;
label: string;
outline?: boolean;
rounded?: boolean;
size?: 'xs' | 'sm' | 'lg' | 'xl';
tag?: T;
};
declare function Button<T extends ElementType>({ className, circle, color, innerRef, label, outline, rounded, size, tag: Tag, ...props }: ButtonProps<T>): React.JSX.Element;
export default Button;