Fine-tune light, shadows, borders, neumorphic
Light and shadows
Borders
Neumorphic
Display

Icon <pm-icon>

Icon. Renders a registered stroke icon; decorative unless label is set.

Full screen

Props

<script type="module"> import '@prismora/css'; import '@prismora/elements/icon'; import { registerIcons } from '@prismora/elements/icon'; import { bell, check, heart, search, settings, sparkles, star } from '@prismora/icons'; registerIcons([bell, check, heart, search, settings, sparkles, star]); </script> <pm-icon name="check" size="xl"></pm-icon> <pm-icon name="star" size="xl" label="Favourite"></pm-icon> <pm-icon name="bell" size="xl"></pm-icon> <pm-icon name="settings" size="xl"></pm-icon> <pm-icon name="search" size="xl"></pm-icon> <pm-icon name="heart" size="xl" style="color: var(--pm-color-danger-text)"></pm-icon> <pm-icon name="sparkles" size="xl" style="color: var(--pm-color-accent-text)"></pm-icon>

Sizes

Set with the size attribute; controls keep touch-sized targets on phones.

size="xs"
size="sm"
size="md"
size="lg"
size="xl"

Attributes

AttributeTypeDefaultDescription
namestring—Registered icon name (see registerIcons).
labelstring—Accessible name. Omit for decorative icons.
size'xs' | 'sm' | 'md' | 'lg' | 'xl'—Size: xs, sm, md, lg or xl (md when not set).
stroke-width
prop: 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

PartDescription
::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