-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(look&feel): ajout des variantes de couleur du loader (#682)
* feat(look&feel): ajout des variantes de couleur du loader * feat(look&feel): création du mdx et mise à jour des stories du loader --------- Co-authored-by: Tanguy SINGEOT SOUSA <[email protected]>
- Loading branch information
1 parent
d904696
commit 2c9068f
Showing
4 changed files
with
97 additions
and
3 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
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,32 @@ | ||
import { Canvas, Controls, Meta } from "@storybook/addon-docs"; | ||
import * as LoaderStories from "./Loader.stories"; | ||
|
||
<Meta of={LoaderStories} name="Loader" /> | ||
|
||
# Loader | ||
|
||
To use the loader import it like that: | ||
|
||
```tsx title="test.js" | ||
import { Loader } from "@axa-fr/design-system-look-and-feel-react"; | ||
|
||
const MyComponent = () => ( | ||
<Loader size={60} border={5} variant="blue" text="Chargement en cours" /> | ||
); | ||
``` | ||
|
||
## Playground | ||
|
||
<Canvas of={LoaderStories.LoaderStory} /> | ||
|
||
<Controls of={LoaderStories.LoaderStory} /> | ||
|
||
## Variants | ||
|
||
Use the `variant` prop to change the look of the loader. The available variants are `"blue"` (default), `"gray"` and `"white"`. [See the examples](#examples-of-variants). | ||
|
||
## Examples of variants | ||
|
||
<Canvas of={LoaderStories.MultiExamples} layout="fullscreen" /> | ||
|
||
For more information regarding the use of this component, you can refer to [the documentation and guidelines](https://zeroheight.com/54c5bd254/v/latest/p/892d26-spinner/b/44fc87) written by our UX and UI designers. |
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
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