MonalisaUI
  • Introduction
  • ArticleCard
  • Avatar
  • Badge
  • Button
  • Card
  • CheckBox
  • Col
  • Divider
  • Icon
  • Input
  • ListItem
  • Pricing
  • ProgressBar
  • Rating
  • Row
  • Segment
  • SocialIcon
  • Spinner
  • Switch
  • Tag
  • Text
  • Textarea
  • Theme
Powered by GitBook
On this page
  • Configuration
  • Example

ProgressBar

PreviousPricingNextRating

Last updated 5 years ago

Progress indicators.

MonalisaUI

View full example:

import React from 'react';
import { View } from 'react-native';
import { ProgressBar } from 'monalisa-ui';

const Example = () => (
  <View>
    <ProgressBar value={100} />
    <ProgressBar height={15} value={30} />
  </View>
);

export default Example;

Configuration

Property

Default

Option

Description

height

12

number

Height of the progress bar

borderColor

#3e50fa

string

Color of outer border

bgColor

#3e50fa

string

Background color of the progress bar

borderRadius

-

any

Rounding of corners, set to 0 to disable

borderWidth

1

number

Width of outer border

value

0

string

number

Progress of whatever the indicator is indicating

style

-

-

Style of the progress bar

Example

  • ProgressBar custom

import React from 'react';
import { View, Text } from 'react-native';
import { ProgressBar } from 'monalisa-ui';

const Example = () => (
  <View>
    <ProgressBar style={styles.bar} value={30} height={30} />
    <ProgressBar style={styles.bar} value={30} bgColor="#ff0000" borderColor="#ff0000" />
    <ProgressBar style={styles.bar} value={30} borderWidth={3} height={20} />
    <ProgressBar style={styles.bar} value={80}>
      <Text>80</Text>
    </ProgressBar>
  </View>
);

export default Example;
ProgressBar Example