ProgressBar
Die Progressbar zeigt an wie weit ein Vorgang fortgeschritten ist.GitHubBeispiel
import ProgressBar from "@mittwald/flow-react-components/ProgressBar"; import Label from "@mittwald/flow-react-components/Label"; <ProgressBar value={50}> <Label>Speicher</Label> </ProgressBar>
Mit Max Value
import ProgressBar from "@mittwald/flow-react-components/ProgressBar"; import Label from "@mittwald/flow-react-components/Label"; <ProgressBar showMaxValue value={500} maxValue={1000} minValue={0} formatOptions={{ style: "unit", unit: "gigabyte" }} > <Label>Speicher</Label> </ProgressBar>
Small
import ProgressBar from "@mittwald/flow-react-components/ProgressBar"; import Label from "@mittwald/flow-react-components/Label"; <ProgressBar size="s" value={50}> <Label>Speicher</Label> </ProgressBar>
Status
import ProgressBar from "@mittwald/flow-react-components/ProgressBar"; <Row> <ProgressBar value={50} status="info"> Info </ProgressBar> <ProgressBar value={50} status="success"> Success </ProgressBar> <ProgressBar value={70} status="warning"> Warning </ProgressBar> <ProgressBar value={90} status="danger"> Danger </ProgressBar> </Row>