ThemeImage

A drawing on a transparent ground made twice, once for each theme, such as a diagram: it follows the theme setting, not only the system's, prints the light one and has no outline.

View source
Route of a request: app, Kaeso, providerRoute of a request: app, Kaeso, provider
import { ThemeImage } from "@logicplanes/kaeso-ui";

Props

  • alt
    string

    What the image shows, read by screen readers and shown when it can't load.

  • aria-describedby
    string

    The id of a longer description, such as a diagram's text alternative.

  • dark
    string

    The image's address for the dark theme.

  • height
    number

    The image's own height in pixels. Pass it with width so the page keeps the image's place before it loads; without both, the content below moves when it arrives.

  • light
    string

    The image's address for the light theme and for print.

  • width
    number

    The image's own width in pixels; the image shrinks to its container, never grows past this.