2.4.1 • Published 8 years ago
fyndiq-component-price v2.4.1
OUTDATED
Please use the Price element included in fyndiq-component-article
Migration Guide for the new element
fyndiq-component-price 
A Price Component for Fyndiq
Installation
The component can be installed through NPM:
npm i -S fyndiq-component-priceUsage
import React from 'react'
import { Price, CurrentPrice, OldPrice } from 'fyndiq-component-price'
// Normal usage
<Price>
<CurrentPrice>129 kr</CurrentPrice>
<OldPrice>200 kr</OldPrice>
</Price>
// Use same font-size
<Price emphasize={false}>
<CurrentPrice>129 kr</CurrentPrice>
<OldPrice>200 kr</OldPrice>
</Price>API
The component Price has the following customizable props:
| Name | Type | Description | Default value |
|---|---|---|---|
| emphasize | Boolean | Use different font-sizes for current and old price | true |
2.4.1
8 years ago
2.4.0
8 years ago
2.3.2
8 years ago
2.3.1
8 years ago
2.3.0
8 years ago
2.2.0
8 years ago
2.1.1
8 years ago
2.1.0
8 years ago
2.0.1
8 years ago
2.0.1-0
8 years ago
2.0.0
8 years ago
2.0.0-pre.0
8 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.0
8 years ago
0.1.1
9 years ago
0.1.0
9 years ago
0.0.6
9 years ago
0.0.5
9 years ago
0.0.2
9 years ago