Module Solidtype_heroui.Surface

HeroUI's Surface: a <div> with HeroUI's classes from Styles.Surface, the background a part of a page stands on. It gives what is inside it its variant, by Context, which HeroUI's Card, Alert, Accordion and overlays give too, so a part can choose the colours that stand out on it.

  <Surface variant=`secondary class_="rounded-3xl p-6">
    <p>"On a secondary surface"</p>
  </Surface>

Kobalte has no surface, and a surface has no behaviour.

type variant = [
  1. | `default
  2. | `secondary
  3. | `tertiary
  4. | `transparent
]
module Context : sig ... end

The variant of the surface a part is inside, if any, read as it changes.

module Props : sig ... end