Skip to content

Commit

Permalink
feat(spinner): make size optional
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwooseong committed May 24, 2024
1 parent cc85187 commit 3822b7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bezier-react/src/components/AlphaSpinner/Spinner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ export const SPINNER_TEST_ID = 'bezier-spinner'

export const Spinner = forwardRef<HTMLSpanElement, SpinnerProps>(
function Spinner(
{ className, size = 'm', variant = 'secondary', ...rest },
{ className, size, variant = 'secondary', ...rest },
forwardedRef
) {
return (
<span
className={classNames(
styles.Spinner,
styles[`size-${size}`],
size && styles[`size-${size}`],
styles[`variant-${variant}`]
)}
ref={forwardedRef}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ type SpinnerSize = 's' | 'm'
interface SpinnerOwnProps {
/**
* The style variant of Spinner.
* @default 'secondary'
*/
variant?: 'primary' | 'secondary' | 'on-overlay'
}
Expand Down

0 comments on commit 3822b7b

Please sign in to comment.