Porsche Design SystemSearchNavigate to GitHub repository of Porsche Design SystemOpen sidebar
ConfiguratorExamplesUsageAccessibilityAPI
Multi Select The p-multi-select component is a versatile custom form element that facilitates the selection of multiple options. It can be used within a form or in a controlled manner. When the p-multi-select component is used within a form, it utilizes the ElementInternals API, which has limited browser support. For broader browser compatibility, consider using a controlled approach instead. Many of the properties closely resemble those found in the select-wrapper and other form components (e.g. label, description, state, message, hideLabel, disabled, required & dropdownDirection). The p-multi-select offers a search field by default. When the user types in a search string, the options are reduced by matching the options text. Options are slotted using the p-multi-select-option component. Each option needs to have an assigned value, which can be passed via an attribute or property and needs to be of type string. Initial selection states can only be achieved using the value property on the p-multi-select component (More Info). Options don't have a selected attribute or property. If an option should be visible but not selectable, it can be disabled by using the disabled attribute. Hint: The p-multi-select utilizes the Popover API to render its dropdown on the #top-layer which enables it to be shown correctly even when used e.g. within a scroll container.
Option AOption BOption COption DOption EOption F
Open in Stackblitz
<!doctype html>
<html lang="en" class="auto">
<head>
  <title></title>
</head>
<body class="bg-base">

<p-multi-select name="name" label="Some Label" description="Some description">
  <p-multi-select-option value="a">
    Option A
  </p-multi-select-option>
  <p-multi-select-option value="b">
    Option B
  </p-multi-select-option>
  <p-multi-select-option value="c">
    Option C
  </p-multi-select-option>
  <p-multi-select-option value="d">
    Option D
  </p-multi-select-option>
  <p-multi-select-option value="e">
    Option E
  </p-multi-select-option>
  <p-multi-select-option value="f">
    Option F
  </p-multi-select-option>
</p-multi-select>
<script>

</script>
</body>
</html>
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)DirectionChanges the direction of HTML elements, mostly used on<html> tag to support languages which are read from right to left like e.g. Arabic.LTR (left-to-right)RTL (right-to-left)AutoText ZoomChanges the text size and values with unit rem or em relatively. This setting can be defined in browser settings for any website or by an application itself on<html> tag. To achieve WCAG 2.2 AA compliance it's obligatory to support text zoom up to at least 200%.100%130%150%200%