Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AlphaSpinner component #2237

Merged
merged 8 commits into from
May 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(spinner): make size optional
yangwooseong committed May 29, 2024
commit 7b9f34a111419e4a953f18ea56dd73343aa581cb
Original file line number Diff line number Diff line change
@@ -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}
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ type SpinnerSize = 's' | 'm'
interface SpinnerOwnProps {
/**
* The style variant of Spinner.
* @default 'secondary'
*/
variant?: 'primary' | 'secondary' | 'on-overlay'
}