Display
Icon <pm-icon>
Icon. Renders a registered stroke icon; decorative unless label is set.
Sizes
Set with the size attribute; controls keep touch-sized targets on phones.
size="xs"size="sm"size="md"size="lg"size="xl"Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
name | string | — | Registered icon name (see registerIcons). |
label | string | — | Accessible name. Omit for decorative icons. |
size | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | — | Size: xs, sm, md, lg or xl (md when not set). |
stroke-widthprop: strokeWidth | number | — | Stroke width (default --pm-icon-stroke, 2). |
Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.
CSS parts
| Part | Description |
|---|---|
::part(svg) | The SVG element. |
Used in templates
Overview dashboardTraffic analyticsOrdersCustomer 360InboxTeam chatAI assistantNotificationsProject boardTeam and rolesBilling and invoicesUser profileAccount settingsSign inCreate accountTwo-step verificationForgot passwordChoose a new passwordPricing plansProduct pageShopping cartCheckoutLanding pageArticleChangelogHelp centreContactComing soonNot found (404)Server error (500)Onboarding wizardAppointment bookingFeedback survey