Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

@comparaonline/ui-fieldset

Package Overview
Dependencies
7
Maintainers
13
Versions
173
Issues
File Explorer

Advanced tools

@comparaonline/ui-fieldset

The fieldset component is the basic layout component that receives a set of inputs, title and a subtitle.

    3.8.3latest

Version published
Maintainers
13
Yearly downloads
10,082
decreased by-40.47%

Weekly downloads

Readme

Source

Fieldset

The fieldset component is the basic layout component that receives a set of inputs, title and a subtitle.

Usage

You need to pass as a children everything that you want to wrap.

import React from 'react'; import { Fieldset } from '@comparaonline/ui-fieldset'; import { TextField } from '@comparaonline/ui-form-fields'; const QuestionGroup: React.SFC<any> = () => ( <Fieldset title="Ingrese sus datos" subtitle="Estos datos son muy importantes" > <TextField {...} /> </Fieldset> );

Options

You can set the variant component and align to the title and subtitle text throught props.

import React from 'react'; import { Fieldset } from '@comparaonline/ui-fieldset'; import { TextField } from '@comparaonline/ui-form-fields'; const QuestionGroup: React.SFC<any> = () => ( <Fieldset title="Ingrese sus datos" titleAlign="center" titleVariant="h1" title="Estos datos son muy importantes" titleAlign="right" titleVariant="body2" > <TextField {...} /> </Fieldset> );
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc