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
AddCardOption
Prop | Type & Description |
---|---|
label | string Default value: "Nytt kort" Visual and/or accessible label |
value | string Value of PaymentOption Examples:
|