Norsk Tipping Design System

AddCardOption

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.AddCardOption
      value='nyttKort'
    />
    ...
</PaymentSelection>

Props

PropTypeDefaultDescription
label?stringNytt kortVisual and/or accessible label
valuestringValue of PaymentOption Examples: - Spillerkonto - Betalingskort - Vipps - Nytt kort

On this page