interface ButtonProps {
    backgroundColor?: string;
    label: string;
    onClick?: () => void;
    primary?: boolean;
    size?: "small" | "medium" | "large";
}

Properties

backgroundColor?: string

What background color to use

label: string

Button contents

onClick?: () => void

Optional click handler

primary?: boolean

Is this the principal call to action on the page?

size?: "small" | "medium" | "large"

How large should the button be?