The fieldset component is the basic layout component that receives a set of inputs, title and a subtitle.
npm install @comparaonline/ui-fieldsetThe fieldset component is the basic layout component that receives a set of inputs, title and a subtitle.
You need to pass as a children everything that you want to wrap.
``tsx
import React from 'react';
import { Fieldset } from '@comparaonline/ui-fieldset';
import { TextField } from '@comparaonline/ui-form-fields';
const QuestionGroup: React.SFC
title="Ingrese sus datos"
subtitle="Estos datos son muy importantes"
>
);
`
#### Options
You can set the variant component and align to the title and subtitle text throught props.
`tsx
import React from 'react';
import { Fieldset } from '@comparaonline/ui-fieldset';
import { TextField } from '@comparaonline/ui-form-fields';
const QuestionGroup: React.SFC
title="Ingrese sus datos"
titleAlign="center"
titleVariant="h1"
title="Estos datos son muy importantes"
titleAlign="right"
titleVariant="body2"
>
);
``