IconSlot
Consistent geometry for a host-supplied SVG icon.
Preview
Use IconSlot
IconSlot is a named export of @flood-md/react. Connect the package once, then import what you use.
Design notes
- No glyph pack ships in the React package. Keep the license of the host's icon artwork.
- Without label the slot is decorative. With label it exposes role="img" and an accessible name.
- Use an SVG rather than a text character. Avoid inline SVG sizing styles that override the slot.
API reference
View TypeScript source