@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).
21 lines (18 loc) • 466 B
JavaScript
import React from 'react';
import { Fieldset } from './fieldset';
export default {
title: 'Fieldset',
component: Fieldset,
};
export const Basic = (args) => <Fieldset {...args} />;
Basic.args = {
header: <span>Header Text</span>,
legend: 'This is my fieldset legend',
headingLevel: 'h1',
children: (
<div style={{ border: '4px solid blue', padding: '10px' }}>
This is a passed in child node!
</div>
),
descriptor: <div>Description element</div>,
};