Skip to content

Commit

Permalink
Update default styles
Browse files Browse the repository at this point in the history
  • Loading branch information
williamgrosset committed Aug 23, 2023
1 parent 787c09e commit 50df13d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ function App() {
| `values` | `Array<number>` | **required** | Y-coordinates on graph |
| `width` | `number` | **required** | Sparkline width |
| `height` | `number` | **required** | Sparkline height |
| `lineColor` | `string` | `'#3590ad'` | Line stroke color |
| `lineWidth` | `number` | `2` | Line stroke width |
| `fillColor` | `string` | `'#bcdfea'` | Fill area color |
| `lineColor` | `string` | `'#4989eb'` | Line stroke color |
| `lineWidth` | `number` | `3` | Line stroke width |
| `fillColor` | `string` | `'#b2cff2'` | Fill area color |
| `fillOpacity` | `number` | `1` | Fill area opacity |
| `className` | `string` | `-` | CSS classes |
| `style` | `React.CSSProperties` | `-` | CSS styles |
Expand Down
6 changes: 3 additions & 3 deletions src/components/Sparkline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export default function Sparkline({
values,
width,
height,
lineColor = '#3590ad',
lineWidth = 2,
fillColor = '#bcdfea',
lineColor = '#4989eb',
lineWidth = 3,
fillColor = '#b2cff2',
fillOpacity = 1,
className,
style
Expand Down

0 comments on commit 50df13d

Please sign in to comment.