IconSource slots and own each icon’s size, alignment, spacing, and tint.npm install @wearables-ui-toolkit/icons
@wearables-ui-toolkit/icons npm package, or browse the icons package on GitHub to see the available assets and package source.@wearables-ui-toolkit/icons package ships the public SVG icon set as a separate, optional dependency. Icon assets are not licensed under the Apache License 2.0. See the Meta Wearables Developer Terms and the package license, which reproduces verbatim excerpts from Sections 2 and 10.@wearables-ui-toolkit/icons/svg/<name>.svg;manifest.json and keyword-index.json for searchable icon tools; andbrowser subpath for interfaces that select arbitrary manifest assets at runtime.airplaneFilled and airplaneOutline. Import icons by name so the bundler can retain only the assets the application uses:import {Button} from '@wearables-ui-toolkit/mrbd';
import {airplaneFilled} from '@wearables-ui-toolkit/icons';
<Button icon={airplaneFilled} title="Airplane mode" />;
IconSource in one of three forms:| Form | Shape | Use it for |
|---|---|---|
Inline vector | viewBox plus paths | Monochrome glyphs that should render without a separate asset request. |
Asset reference | uri plus optional tinted | Bundled files, URLs, and data URIs. |
Shorthand | Plain URL string | The tinted asset-reference form. |
import {Button, type IconSource} from '@wearables-ui-toolkit/mrbd';
const replyIcon: IconSource = {
viewBox: '0 0 24 24',
paths: [{d: 'M10 9V5l-7 7 7 7v-4c5 0 8 2 9 5 .5-5-3-9-9-9z'}],
};
<Button icon={replyIcon} title="Reply" />;
tinted at its default for monochrome symbols. Set tinted: false only for full-color artwork:import type {IconSource} from '@wearables-ui-toolkit/mrbd';
import appIconUrl from './app-icon.png';
const appIcon: IconSource = {uri: appIconUrl, tinted: false};
IconSource fields, renderer props, and rendering behavior. Use IconWithContainerMaterial only when authoring content that deliberately combines an icon with a material container.| Content | Use | Notes |
|---|---|---|
Monochrome symbol | An IconSource prop such as icon or statusIndicatorIcon | Decorative; sized and tinted by the component. |
Avatar photo | src or avatarSrc | Pair with the corresponding alternative-text prop. |
Modal artwork | bannerSrc or logoSrc | Pair with bannerAlt or logoAlt. |