mirror of
https://github.com/kevinsqi/react-circular-progressbar.git
synced 2026-01-25 16:03:15 +00:00
update README to be clear about sizing container
This commit is contained in:
parent
3f64e7bdaf
commit
b658f919f8
11
README.md
11
README.md
@ -61,6 +61,17 @@ const value = 0.66;
|
||||
<CircularProgressbar value={value} maxValue={1} text={`${value * 100}%`} />;
|
||||
```
|
||||
|
||||
The progressbar is designed to fill the width of its container. You can size the progressbar by sizing its container:
|
||||
|
||||
```jsx
|
||||
<div style={{ width: 200, height: 200 }}>
|
||||
<CircularProgressbar value={66} />
|
||||
</div>
|
||||
```
|
||||
|
||||
This makes the progressbar work well with responsive designs and grid systems.
|
||||
|
||||
|
||||
## Props
|
||||
|
||||
[**Take a look at the CodeSandbox**](https://codesandbox.io/s/vymm4oln6y) for interactive examples on how to use these props.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user