Porsche Design SystemSearchNavigate to GitHub repository of Porsche Design SystemOpen sidebar
ConfiguratorUsageAccessibilityAPI
Flag Table of ContentsPropertiesPropertyAttributeDescriptionTypeDefaultaria ariaA map of ARIA attributes to enhance the flag's accessibility. For example, use { 'aria-label': 'German flag' } to provide a descriptive label for screen readers.type FlagAriaAttribute = {
  'aria-label'?: string;
}
undefined
name nameSpecifies the country flag to display. Use the two-letter ISO 3166-1 alpha-2 country code. For example, use us for the United States, de for Germany, gb for Great Britain.type FlagName =
'ae'
'am'
'ar'
'at'
'au'
'az'
'ba'
'be'
'bg'
'bh'
'bn'
'bo'
'br'
'by'
'ca'
'ch'
'cl'
'cn'
'co'
'cr'
'cw'
'cy'
'cz'
'de'
'dk'
'do'
'dz'
'ec'
'ee'
'eg'
'es'
'fi'
'fr'
'gb'
'ge'
'gh'
'gr'
'gt'
'hk'
'hn'
'hr'
'ht'
'hu'
'id'
'ie'
'il'
'in'
'is'
'it'
'jm'
'jo'
'jp'
'ke'
'kh'
'kr'
'kw'
'kz'
'lb'
'lk'
'lt'
'lu'
'lv'
'ma'
'md'
'mk'
'mn'
'mo'
'mq'
'mt'
'mu'
'mx'
'my'
'ng'
'nl'
'no'
'nz'
'om'
'pa'
'pe'
'pf'
'ph'
'pk'
'pl'
'pr'
'pt'
'py'
'qa'
'ro'
'rs'
'ru'
'sa'
'se'
'sg'
'si'
'sk'
'sv'
'th'
'tn'
'tr'
'tt'
'ua'
'us'
'uy'
'uz'
've'
'vn'
'za'
'de'
size sizeThe size of the flag. Pre-defined sizes are aligned with the Porsche Next typescale. Available values are small, medium, large, etc.type FlagSize =
'xx-small'
'x-small'
'small'
'medium'
'large'
'x-large'
'inherit'
'small'
Global settingsThemeChanges the theme of the application and any Porsche Design System component. It's possible to choose between forced theme light and dark. It's also possible to use auto, which applies light or dark theme depending on the operating system settings automatically.LightDarkAuto (sync with operating system)DirectionThe dir global attribute in HTML changes the direction of text and other content within an element. It's most often used on the <html> tag to set the entire page's direction, which is crucial for supporting languages that are written from right to left (RTL), such as Arabic and Hebrew. For example, using <html dir="rtl"> makes the entire page display from right to left, adjusting the layout and text flow accordingly.LTR (left-to-right)RTL (right-to-left)Text ZoomTo ensure accessibility and comply with WCAG 2.2 AA standards, it is mandatory for web content to support text resizing up to at least 200% without loss of content or functionality. Using relative units like rem is a best practice for achieving this, as they allow the text to scale uniformly based on the user's browser settings.100%130%150%200%