Slotted
Utility for applying a named slot to children.
This is primarily helpful when you want to slot a React component that
doesn't expose slot in its props.
Imports
import {Slotted} from 'material-expressive-react';
import {Slotted} from 'material-expressive-react/internal';
Props
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| slot | string | Yes |
Events
This component does not explicitly re-emit DOM events via wrapper props.
Slots
Material Web components frequently use named slots. In React, you can pass slot="..." on children (e.g. <Icon slot="icon" />).
If you need to slot a child component that does not accept a slot prop, use the Slotted utility (see Utilities → Slotted).
Examples
See Storybook for live examples and variants.