Skip to content

ModuleHeader API

API reference docs for the Stash ModuleHeader component. Learn about the props, CSS, and other APIs of this exported module.

Import

ts
import ModuleHeader from '@leaflink/stash/ModuleHeader.vue';

Props

NameTypeDefaultDescription
descriptionstring '' Header description, aka subtitle. Will get overridden by the `description` slot if provided.
preventActionsWrapbooleanfalseStop the actions slot from force-wrapping on medium and smalls screens.
size"small" | "medium" | "large"mediumSize of the header. - `small` = `h4` - `medium` = `h3` - `large` = `h2`
titlestring '' Header title. Will get overridden by the `title` slot if provided.
underlinebooleanfalseDisplays a border at the bottom

Slots

NameDescription
mediaPlace an illustration that sits next to the header title & description.
titleHeader title. **Deprecated**: Use the default slot or the `title` prop instead.
defaultHeader title.
descriptionHeader description, aka subtitle. Falls back to the `description` prop.
actionsAdd action buttons or other CTAs.

Events

None