@financial-times/n-conversion-forms
Version:
Containing jsx components and styles for forms included on Accounts and Acquisition apps (next-signup, next-profile, next-retention, etc).
23 lines (19 loc) • 549 B
JavaScript
import React from 'react';
import { CompanyName } from './company-name';
export default {
title: 'Company Name',
component: CompanyName,
argTypes: {
value: { control: 'text' },
fieldLabel: { control: 'text' },
hasError: { control: 'boolean' },
isDisabled: { control: 'boolean' },
isRequired: { control: 'boolean' },
isHidden: { control: 'boolean' },
},
};
export const Basic = (args) => <CompanyName {...args} />;
export const OptionalCompany = (args) => <CompanyName {...args} />;
OptionalCompany.args = {
isRequired: false,
};