Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

skava / @skava/ui   js

Repository URL to install this package:

Version: 2.8.8 

import { styled } from 'styleh-components'
import { Label, LabelElement } from 'atoms/Text/Label'

const PriceWrapper = styled.section `
  position: relative;
`

const LabelSpan = LabelElement.as('span')

const SalePrice = styled.withComponent(LabelSpan).attrs({
  'data-qa': 'qa-sale-price',
}) `
  position: relative;
  color: var(--color-red);
  margin-right: 5px;
`

const RegularPrice = styled.withComponent(LabelSpan).attrs({
  'data-qa': 'qa-reg-price',
}) `
  position: relative;
  color: #1e1e1e;
  ${props =>
    props.isSalePrice &&
    styled.css `
      text-decoration: line-through;
    `};
`

export { PriceWrapper, SalePrice, RegularPrice }