Design systém gov.cz4.7.1

gov-control-group ​

Overview ​

Groups related form controls into a single bordered strip.

All props can be set either as an HTML attribute (<gov-control-group no-border="true">) or as a JS property (el.noBorder = true, or a framework binding such as Angular [noBorder] / Vue :no-border). Both have exactly the same effect: the props are reflected to the host attributes that the component's styling keys off, so whichever way a value is set it ends up on the host.

Properties ​

PropertyAttributeDescriptionTypeDefault
colorcolorStyle variation of the content message."error" | "neutral" | "primary"Colors.NEUTRAL
fitContentfit-contentShrinks the group to the width of its content instead of filling the available widthbooleanfalse
noBorderno-borderRemoves the outer border of the whole groupbooleanfalse
noInnerBorderno-inner-borderHides the dividing borders between the grouped elements, keeping the outer borderbooleanfalse

Built with StencilJS