Accueil
Components
ProgressBar
ProgressBar
Barre de progression
Examples
Styles
ui
Determinate
tsx
Copier
export
const
Determinate
=
(
)
=>
<
ProgressBar
mode
=
"
determinate
"
value
=
{
0.25
}
/>
;
Loop
tsx
Copier
export
const
Loop
=
(
)
=>
<
ProgressBar
mode
=
"
loop
"
/>
;
Indeterminate
tsx
Copier
export
const
Indeterminate
=
(
)
=>
<
ProgressBar
mode
=
"
indeterminate
"
/>
;
WithIndicator
25.000%
tsx
Copier
export
const
WithIndicator
=
(
)
=>
<
ProgressBar
mode
=
"
determinate
"
indicator
value
=
{
0.25
}
/>
;
NoRadius
tsx
Copier
export
const
NoRadius
=
(
)
=>
<
ProgressBar
mode
=
"
determinate
"
noRadius
value
=
{
0.25
}
/>
;
Usage
Augmenter
tsx
Copier
export
const
Usage
=
(
)
=>
{
const
[
value
,
setValue
]
=
React
.
useState
(
0.25
)
;
return
(
<
Box
>
<
ProgressBar
value
=
{
value
}
/>
<
Box
mt
=
{
'2W'
}
width
=
{
150
}
>
<Button
title=
{
value
<
1
?
'Augmenter'
:
'Réduire'
}
variant="secondary"
onPress=
{
(
)
=>
{
Afficher tout