Skip to content

Properties

Field-specific properties

PropertyTypeDescription
countryCodePath
string
(optional) Defines which country the postal code and city is for, based on the ISO 3166-1 alpha-2 code i.e. NO, DE etc. Setting it to anything other than NO will remove the default norwegian postal code pattern. You can also use the value of another field to define the countryCode, by using a path value i.e. /myCountryCodePath. Defaults to NO.
postalCodeobject(required) Properties for the Field.String component for postal code.
cityobject(required) Properties for the Field.String component for city.
helpobject(optional) Provide help content for the field using title and content as a string or React.Node. Additionally, you can set open to true to display the inline help, set the breakout property to false to disable the breakout of the inline help content, or use renderAs set to dialog to render the content in a Dialog (recommended for larger amounts of content).
sizestring
number
(optional) The sizes you can choose is default (2rem), medium (2.5rem) and large (3rem) are supported component sizes. Defaults to default / null. Also, if you define a number like size={2} then it will be forwarded as the input element attribute. Consider rather setting field sizes with Form.Appearance.

General properties

PropertyTypeDescription
labelDescriptionInlineboolean(optional) If true, the labelDescription will be displayed on the same line as the label.
labelSrOnlyboolean(optional) Use true to make the label only readable by screen readers.
labelSizestring
false
(optional) Define one of the following heading sizes: medium or large.
helpobject(optional) Provide help content for the field using title and content as a string or React.Node. Additionally, you can set open to true to display the inline help, set the breakout property to false to disable the breakout of the inline help content, or use renderAs set to dialog to render the content in a Dialog (recommended for larger amounts of content).
widthstring
false
(optional) Will set the width for the whole block. Use small, medium, large for predefined standard widths. You can also set a custom width {number}rem or use stretch or false.
contentWidthstring
false
(optional) Will set the width for its contents. Use small, medium, large for predefined standard widths. You can also set a custom width {number}rem or use stretch or false.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.
labelHeightstring(optional) Defines the height of an component (size prop), so the label can be aligned correctly. Can be default, small, medium, large.
asFieldsetboolean(optional) Use true when you have several form elements. This way a fieldset with a legend is used.
alignstring
false
(optional) center or bottom for aligning the contents vertically. Defaults to bottom.
disableStatusSummaryboolean(optional) Use true to disable the error summary.
compositiontrue(optional) Use true for when you have more than one field wrapped.
disabledboolean(optional) Set true to make the inner FormLabel behave as disabled.

Translations

More info about translations can be found in the general localization and Eufemia Forms localization docs.

Keynb-NOen-GBsv-SEda-DK
PostalCode.labelPostnr.Postc.Postnr.Postnr.
PostalCode.errorRequiredDu må fylle inn et postnummer.You must enter a postal code.Du måste fylla i ett postnummer.Du skal udfylde et postnummer.
PostalCode.errorPatternDette er ikke et gyldig postnummer (fire siffer).This is not a valid postal code (four-digits).Detta är inte ett giltigt postnummer (fyra siffror).Dette er ikke et gyldigt postnummer (fire cifre).
City.labelStedCityOrtBy
City.errorRequiredDu må fylle inn et stedsnavn.You must enter a city name.Du måste fylla i ett ortsnamn.Du skal udfylde et bynavn.
City.errorPatternStedsnavn kan kun inneholde bokstaver og gyldige tegn som bindestrek og mellomrom.City names can only contain letters and valid characters such as hyphens and spaces.Ortsnamn kan endast innehålla bokstäver och giltiga tecken som bindestreck och mellanslag.Bynavn må kun indeholde bogstaver og gyldige tegn som bindestreg og mellemrum.
Field.errorSummaryTitleFeil som må rettesPlease correct the following errorsFel som måste åtgärdasFelter der skal rettes
Field.stateSummaryOppsummering:Summary:Sammanfattning:Oversigt:
Field.errorSummaryFeil som må rettes:Please correct the following errors:Fel som måste åtgärdas:Felter der skal rettes:
Field.errorRequiredDette feltet må fylles ut.This field is required.Detta fält måste fyllas i.Dette felt skal udfyldes.
Field.errorPatternVerdien er ugyldig.The value is invalid.Värdet är ogiltigt.Ugyldig værdi.
Field.optionalLabelSuffix(valgfritt)(optional)(valfritt)(valgfrit)