MVP
This commit is contained in:
@@ -6,11 +6,15 @@ import './button.css';
|
||||
* Primary UI component for user interaction
|
||||
*/
|
||||
export const Button = ({ primary, backgroundColor, size, label, ...props }) => {
|
||||
const mode = primary ? 'storybook-button--primary' : 'storybook-button--secondary';
|
||||
const mode = primary
|
||||
? 'storybook-button--primary'
|
||||
: 'storybook-button--secondary';
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
className={['storybook-button', `storybook-button--${size}`, mode].join(' ')}
|
||||
className={['storybook-button', `storybook-button--${size}`, mode].join(
|
||||
' '
|
||||
)}
|
||||
style={backgroundColor && { backgroundColor }}
|
||||
{...props}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user