Skip to content

Instantly share code, notes, and snippets.

@hboylan
Last active June 21, 2021 19:45
Show Gist options
  • Save hboylan/03e8e5ec285fb5835ba4927d7b1b2116 to your computer and use it in GitHub Desktop.
Save hboylan/03e8e5ec285fb5835ba4927d7b1b2116 to your computer and use it in GitHub Desktop.
export interface ButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement> {
/**
* Button color (primary|secondary|transparent|link)
* @default "primary"
*/
color?: ButtonColor;
/**
* Renders full width
* @default false
*/
fullWidth?: boolean;
/**
* Renders icon left of text
*/
icon?: React.ReactElement<IconProps>;
/**
* Button size (small|medium|large)
* @default "medium"
*/
size?: ButtonSize;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment