UNPKG

@wfp/ui

Version:
26 lines (17 loc) 846 B
import { Meta, Story, Preview } from '@storybook/addon-docs/blocks'; ## Usage Use the **Loading** spinner to indicate a loading time between 1 and 7 seconds. For shorter loading times don't use any loader and for longer use a progress bar to indicate the remaining time. ### Usage with (react) ```javascript import { Loading } from '@wfp/ui'; ``` ```js <Loading withOverlay={false} active /> ``` #### css Modifiers Use these modifiers with `.wfp--loading` class. | Selector | Description | | --------------------------- | ---------------------------------------- | | .wfp--loading--small | Class for small loading spinner | | .wfp--loading--stop | Class for stopping the loading animation | | .wfp--loading-overlay--stop | Class for hiding the overlay |