-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert spinner component to CSS modules
Co-authored-by: Hussam Ghazzi <hussam-i-am@github.com> Co-authored-by: Josh Black <joshblack@github.com> Co-authored-by: Jon Rohan <yes@jonrohan.codes>
- Loading branch information
1 parent
6713e72
commit ecd4cbd
Showing
3 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from 'react' | ||
import type {Meta} from '@storybook/react' | ||
import Spinner from './Spinner' | ||
|
||
export default { | ||
title: 'Components/Spinner/Dev', | ||
component: Spinner, | ||
} as Meta<typeof Spinner> | ||
|
||
export const Default = () => <Spinner sx={{border: '1px solid red'}} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.Box { | ||
display: inline-flex; | ||
} | ||
|
||
@keyframes rotate-keyframes { | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
.SpinnerAnimation { | ||
animation: rotate-keyframes 1s linear infinite; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters