mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
32 lines
779 B
TypeScript
32 lines
779 B
TypeScript
import React from 'react';
|
|
|
|
import { Progress } from '@luxfi/ui/progress';
|
|
|
|
import { Section, Container, SectionHeader, SamplesStack, Sample } from './parts';
|
|
|
|
const ProgressShowcase = () => {
|
|
|
|
return (
|
|
<Container value="progress">
|
|
<Section>
|
|
<SectionHeader>Size</SectionHeader>
|
|
<SamplesStack >
|
|
{ ([ 'sm', 'md', 'lg', 'xl' ] as const).map((size) => (
|
|
<Sample key={ size } label={ `size: ${ size }` }>
|
|
<Progress
|
|
w="200px"
|
|
min={ 0 }
|
|
max={ 100 }
|
|
value={ 45 }
|
|
size={ size }
|
|
/>
|
|
</Sample>
|
|
)) }
|
|
</SamplesStack>
|
|
</Section>
|
|
</Container>
|
|
);
|
|
};
|
|
|
|
export default React.memo(ProgressShowcase);
|