This commit is contained in:
2024-09-05 19:33:30 -04:00
parent 51da011d12
commit 7f6116450f
187 changed files with 81911 additions and 388 deletions

View File

@@ -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}
>