@financial-times/n-conversion-forms
Version:
Containing jsx components and styles for forms included on Accounts and Acqusition apps (next-signup, next-profile, next-retention, etc).
30 lines (25 loc) • 723 B
JavaScript
import React from 'react';
import { DeliveryPOBox } from './delivery-po-box';
export default {
title: 'Delivery P.O. Box',
component: DeliveryPOBox,
argTypes: {
fieldId: { control: 'string' },
inputId: { control: 'string' },
value: { control: 'string' },
maxlength: { control: 'number' },
country: { control: 'string' },
hasError: { control: 'boolean' },
isDisabled: { control: 'boolean' },
isHidden: { control: 'boolean' },
},
};
export const Basic = (args) => <DeliveryPOBox {...args} />;
export const USAPOBox = (args) => <DeliveryPOBox {...args} />;
USAPOBox.args = {
country: 'USA',
};
export const CanadaPOBox = (args) => <DeliveryPOBox {...args} />;
CanadaPOBox.args = {
country: 'CAN',
};