Norsk Tipping Design System

CardOption

Install

yarn add @ntds/payment-selection

Import

import { PaymentSelection } from '@ntds/payment-selection';

Usage

<PaymentSelection
  label='Betalingsmåte'
  name='payment-selection'
  value={paymentOption}
  setValue={setPaymentOption}
>
    <PaymentSelection.CardOption
      cardNumber='3333'
      srOnlyCardNumberLabel='slutter med: '
      value='kort'
    />
    ...
</PaymentSelection>

Props

PropTypeDefaultDescription
twCardNumberColor?TwClassNamesCustom color for the card number subtext
srOnlyCardNumberLabel?stringText to further describe the card number subtext
label?stringKortVisual and/or accessible label
valuestringValue of PaymentOption Examples: - Spillerkonto - Betalingskort - Vipps - Nytt kort

On this page