1.1.29 • Published 2 years ago
@highlight-ui/sandbox-loading-state v1.1.29
@highlight-ui/sandbox-loading-state
Installation
yarn add @highlight-ui/sandbox-loading-state
Usage
In your TypeScript file:
import {
LoadingState,
LoadingStateProps,
} from '@highlight-ui/sandbox-loading-state';
In your (S)CSS file:
@import url('@highlight-ui/sandbox-loading-state');
Skeleton
In your TypeScript file:
import { LoadingState, LoadingStateProps } from '@highlight-ui/loading-state';
import { Skeleton } from '@highlight-ui/skeleton';
if (status === 'idle') {
return <LoadingState state="idle" />;
}
if (status === 'loading') {
return (
<LoadingState
state="loading"
indicator={<Skeleton repeat={3} />}
message="Loading some arbitrary data. Please wait."
/>
);
}
return (
<LoadingState
state="completed"
message="Arbitrary data has been loaded. This data is ready to use."
/>
);
Spinner
In your TypeScript file:
import { LoadingState, LoadingStateProps } from '@highlight-ui/loading-state';
import { Spinner } from '@highlight-ui/spinner';
if (status === 'idle') {
return <LoadingState state="idle" />;
}
if (status === 'loading') {
return (
<LoadingState
state="loading"
indicator={<Spinner />}
message="Loading some arbitrary data. Please wait."
/>
);
}
return (
<LoadingState
state="completed"
message="Arbitrary data has been loaded. This data is ready to use."
/>
);
Documentation
Please visit personio.design
1.1.29
2 years ago
1.1.28
2 years ago
1.1.19
2 years ago
1.1.18
2 years ago
1.1.17
2 years ago
1.1.23
2 years ago
1.1.22
2 years ago
1.1.21
2 years ago
1.1.20
2 years ago
1.1.27
2 years ago
1.1.26
2 years ago
1.1.25
2 years ago
1.1.24
2 years ago
1.1.16
2 years ago
1.1.15
2 years ago
1.1.14
2 years ago
1.1.12
2 years ago
1.1.11
2 years ago
1.1.10
2 years ago
1.1.13
2 years ago
1.1.9
2 years ago
1.1.8
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago