Skip to content

Commit

Permalink
feat(@clayui/button): add regular size
Browse files Browse the repository at this point in the history
  • Loading branch information
matuzalemsteles committed Apr 17, 2024
1 parent 53a62b1 commit af300c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/clay-button/src/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export interface IProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
/**
* Determines the size of a button.
*/
size?: 'xs' | 'sm';
size?: 'xs' | 'regular' | 'sm';

/**
* Indicates button should be a small variant.
Expand All @@ -96,7 +96,7 @@ const ClayButton = React.forwardRef<HTMLButtonElement, IProps>(
monospaced,
outline,
rounded,
size,
size = 'regular',
small,
translucent,
type = 'button',
Expand Down Expand Up @@ -133,15 +133,15 @@ const ClayButton = React.forwardRef<HTMLButtonElement, IProps>(
'btn-block': block,
'btn-monospaced': monospaced,
'btn-outline-borderless': borderless,
'btn-sm': small && !size,
'btn-sm': small && (!size || size === 'regular'),
'btn-translucent': translucent,
'clay-dark': dark,
[`btn-${displayType}`]:
displayType && !outline && !borderless,
[`btn-outline-${displayType}`]:
displayType && (outline || borderless),
'rounded-pill': rounded,
[`btn-${size}`]: size,
[`btn-${size}`]: size && size !== 'regular',
})}
ref={ref}
type={type}
Expand Down

0 comments on commit af300c8

Please sign in to comment.