diff --git a/src/primitives/button/button.tsx b/src/primitives/button/button.tsx index 05b940121..38ddc4cbf 100644 --- a/src/primitives/button/button.tsx +++ b/src/primitives/button/button.tsx @@ -30,9 +30,6 @@ export interface ButtonProps extends ResponsivePaddingProps, ResponsiveRadiusPro selected?: boolean space?: number | number[] textAlign?: ButtonTextAlign - /** - * @default primary - */ textStyle?: ButtonTextStyle text?: React.ReactNode tone?: ButtonTone @@ -140,7 +137,7 @@ export const Button = forwardRef(function Button( {(icon || text || iconRight) && ( - + {icon && ( {isValidElement(icon) && icon} @@ -149,11 +146,7 @@ export const Button = forwardRef(function Button( )} {text && ( - + = ['default', 'positive', 'caution', 'critical'] export const StudioButtons: Story = { args: { - text: 'Button', + // Defaults button props. padding: 3, + space: 3, fontSize: 1, radius: 2, - icon: 'square', - iconRight: 'square', - // For small buttons: + // Small buttons: // space: 2, // padding: 2, + + text: 'Button', + icon: 'square', + iconRight: 'square', }, parameters: { controls: { @@ -194,7 +197,7 @@ export const StudioButtons: Story = { title: 'Tone / Mode', subHeader: , renderItem: ({row, column}) => ( - +