ReleaseArt

Flat geometric artwork for a release, from a stored spec or a seed: the same picture every time, a new one for every release.

View source
import { ReleaseArt } from "@logicplanes/kaeso-ui";

Props

  • art
    ReleaseArtSpec

    The release's stored artwork, e.g. from nextReleaseArt; it always draws the same picture and wins over seed.

  • eyebrow
    ReactNode

    Small text above the title, e.g. “What's new in Kaeso”.

  • flush
    boolean

    Drops the rounded corners and outline and fills the height it is given, cropping to its shape, for artwork that meets the edges of the surface it sits in, such as an Announcement.

  • label
    string

    What the picture shows, read by screen readers: "Kaeso 0.1.0".

  • seed
    string

    What the artwork is drawn from when there is no art, e.g. 0.1.0; the same seed always draws the same picture.

  • shape
    "banner" | "wide" = banner

    The artwork's aspect ratio.

  • src
    string

    An image of the release's stored artwork, e.g. https://update.kaeso.app/art/0.1.0.svg, shown in the frame instead of the drawn picture, which takes its place if the image doesn't load.

  • title
    ReactNode

    Large text on the artwork, e.g. the version number.