This package has been deprecated

Author message:

Please use the new scope @axa-ch-webhub-cloud

@axa-ch/fieldset

6.0.11 • Public • Published

Fieldset

The <axa-fieldset> component is used to group several controls within a web form. Compared to its native HTML counterpart, its function is mainly restricted to styling: the element ensures that the grouped controls obey correct spacing as per the style guide.

By default, the element children's layout direction is vertical.

Vertical direction is typically used to used to ensure correct layout for a group of <axa-checkbox> or non-button <axa-radio> elements.

Note: This component only styles its immediate children! For best results, avoid extra <div> wrappers or similar around children components.

Properties

Unless noted otherwise, properties can be set via attributes or properties. Starred property names are reflected to attributes.

horizontal*

The string-valued horizontal attribute changes the layout direction of the element's children to horizontal (default: "horizontal"). It also imposes the correct horizontal gaps between children, except for children with a nogap attribute.

Attribute Details
horizontal="horizontal" Ensure correct layout for a group of <axa-radio> buttons.
horizontal="stretch" This mode is responsive: when crossing the sm(all) breakpoint (575px), this component forces conformant children to assume 100% width and rearranges them into a vertical layout with correct vertical spacing.

error*

The string-valued error attribute, when nonempty, displays its value as an error message below the fieldset's children.

As a special case, it also colors the border of unselected <axa-radio> components in the error color.

Readme

Keywords

none

Package Sidebar

Install

npm i @axa-ch/fieldset

Weekly Downloads

196

Version

6.0.11

License

Copyright 2019 AXA Versicherungen AG

Unpacked Size

32.7 kB

Total Files

7

Last publish

Collaborators

  • gianlucaguarini
  • valentin-hasler
  • marek.laco
  • domirs
  • axa-ch-user
  • matthias.zuercher
  • selinagahlinger