@govuk-frederic/counter-bar
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "@govuk-frederic/counter-bar", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "@govuk-frederic/result-count-title": "^0.0.3", |
@@ -178,19 +178,3 @@ CounterBar | ||
``` | ||
Use an active Link component for a counter | ||
```jsx | ||
import { HashRouter, Link } from 'react-router-dom'; | ||
<HashRouter> | ||
<CounterBar> | ||
<CounterBar.Total score={15}>All counters</CounterBar.Total> | ||
<CounterBar.Counters> | ||
<CounterBar.Counter score={1} component={Link} to="/courses/1/" active>Counter *1</CounterBar.Counter> | ||
<CounterBar.Counter score={2}>Counter 2</CounterBar.Counter> | ||
<CounterBar.Counter score={3}>Counter 3</CounterBar.Counter> | ||
<CounterBar.Counter score={4}>Counter 4</CounterBar.Counter> | ||
<CounterBar.Counter score={5}>Counter 5</CounterBar.Counter> | ||
</CounterBar.Counters> | ||
</CounterBar> | ||
</HashRouter> | ||
### Properties | ||
@@ -197,0 +181,0 @@ Prop | Required | Default | Type | Description |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
187941
185