Figure
A native figure that keeps media and its caption together.
Preview
Project preview
Use Figure
Figure is a named export of @flood-md/react. Connect the package once, then import what you use.
Design notes
- Composes native figure and figcaption. The host supplies the image, chart, code or other self-contained content, including its own alt text or accessible name.
- captionPosition controls DOM reading order as well as placement. Caption content may contain links. Native hidden, dir, lang, style and ref target the figure.
- Compatible addition in 0.2.5. Uses existing Flood semantic tokens and relative geometry.
API reference
View TypeScript source