2.4.1 • Published 7 years ago

fyndiq-component-price v2.4.1

Weekly downloads
17
License
MIT
Repository
github
Last release
7 years ago

OUTDATED

Please use the Price element included in fyndiq-component-article

Migration Guide for the new element



fyndiq-component-price npm

A Price Component for Fyndiq

Installation

The component can be installed through NPM:

npm i -S fyndiq-component-price

Usage

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:

NameTypeDescriptionDefault value
emphasizeBooleanUse different font-sizes for current and old pricetrue
2.4.1

7 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

8 years ago

0.1.0

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.2

8 years ago