PlainExpandCollapseToggle

An expand/collapse toggle in the Plain reference design system

API

Class hierarchy:

The element defines the following shadow parts:

  • collapse-icon: the default icon shown when the panel is expanded
  • down-icon: the icon shown in the toggle if the popup will open or close in the down direction
  • expand-icon: the default icon shown when the panel is collapsed
  • toggle-icon: both of the default icons used to expand/collapse the panel
  • up-icon: the icon shown in the toggle if the popup will open or close in the up direction

This element is used as a shadow part in PlainExpandableSection.

direction property

Indicates which direction the element should point to.

Type: 'down'|'up'

Default: 'down'

Defined by UpDownToggle