UNPKG

react-html-elements

Version:

A standalone, dependency-free React component library for customizable buttons, toggles, radios, checkboxes, dropdowns, and input fields.

9 lines (8 loc) 307 B
import React from 'react'; export type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'danger'; export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> { color?: string; variant?: ButtonVariant; } declare const Button: React.FC<ButtonProps>; export default Button;