@politiet/pds-icon
v0.3.2
Published
Ikonkomponent i Politiets Designsystem.
Downloads
21
Readme
Denne komponenten trenger material-icons npm pakken.
For å ta i bruk komponenten må du først importere css
eller scss
filene i app.tsx
eller din ekvivalente top level komponent.
For css:
import "material-icons/iconfont/outlined.css";
import "material-icons/iconfont/filled.css";
For scss:
import "material-icons/iconfont/outlined.scss";
import "material-icons/iconfont/filled.scss";
Outlined
<div id="test-icon-1">
<Icon type="info" color={"mid-blue"} size="xsmall" text="Informasjon" />
<Icon type="info" color={"mid-blue"} size="small" text="Informasjon" />
<Icon type="info" color={"mid-blue"} text="Informasjon" />
<Icon type="info" color={"mid-blue"} size="large" />
<Icon type="info" color={"mid-blue"} size="xlarge" />
<Icon type="info" color={"mid-blue"} size="xxlarge" />
</div>
Filled
<div id="test-icon-2">
<Icon type="info" filled color={"mid-blue"} size="xsmall" />
<Icon type="info" filled color={"mid-blue"} size="small" />
<Icon type="info" filled color={"mid-blue"} />
<Icon type="info" filled color={"mid-blue"} size="large" />
<Icon type="info" filled color={"mid-blue"} size="xlarge" />
<Icon type="info" filled color={"mid-blue"} size="xxlarge" />
</div>
Other colors
<div id="test-icon-3">
<Icon type="info" filled color={"black"} />
<Icon type="info" filled color={"dark-blue"} />
<Icon type="info" filled color={"mid-blue"} />
<Icon type="info" filled color={"light-blue"} />
<Icon type="info" filled color={"interactive-blue"} />
<Icon type="info" filled color={"yellow"} />
<Icon type="info" filled color={"alert-warning"} />
<Icon type="info" filled color={"alert-danger"} />
<Icon type="info" filled color={"alert-success"} />
<br />
<Icon type="info" filled color={"black"} tint={"tint-2"} />
<Icon type="info" filled color={"dark-blue"} tint={"tint-2"} />
<Icon type="info" filled color={"mid-blue"} tint={"tint-2"} />
<Icon type="info" filled color={"light-blue"} tint={"tint-2"} />
<Icon type="info" filled color={"interactive-blue"} tint={"tint-2"} />
<Icon type="info" filled color={"yellow"} tint={"tint-2"} />
<Icon type="info" filled color={"alert-warning"} tint={"tint-2"} />
<Icon type="info" filled color={"alert-danger"} tint={"tint-2"} />
<Icon type="info" filled color={"alert-success"} tint={"tint-2"} />
<br />
<Icon type="info" color={"black"} />
<Icon type="info" color={"dark-blue"} />
<Icon type="info" color={"mid-blue"} />
<Icon type="info" color={"light-blue"} />
<Icon type="info" color={"interactive-blue"} />
<Icon type="info" color={"yellow"} />
<Icon type="info" color={"alert-warning"} />
<Icon type="info" color={"alert-danger"} />
<Icon type="info" color={"alert-success"} />
<br />
<Icon type="info" color={"black"} tint={"tint-2"} />
<Icon type="info" color={"dark-blue"} tint={"tint-2"} />
<Icon type="info" color={"mid-blue"} tint={"tint-2"} />
<Icon type="info" color={"light-blue"} tint={"tint-2"} />
<Icon type="info" color={"interactive-blue"} tint={"tint-2"} />
<Icon type="info" color={"yellow"} tint={"tint-2"} />
<Icon type="info" color={"alert-warning"} tint={"tint-2"} />
<Icon type="info" color={"alert-danger"} tint={"tint-2"} />
<Icon type="info" color={"alert-success"} tint={"tint-2"} />
</div>