Skip to content
Components
@app-studio/components

Message

Display application messages with showMessage and a mounted MessageLayout. MessageView supplies the presentation props below.

View component source

Import

ts
import { MessageLayout, showMessage } from '@app-studio/components';

New to the library? Complete installation and provider setup first.

Interactive examples

Try the component, then open Code to copy the complete example.

INTERACTIVE EXAMPLE

Loading preview…

Props

Required props are marked below. A dash indicates an unspecified default. Design system configuration can override implementation defaults.

Scroll horizontally to see every column.

MessageView
PropTypeDefaultDescription
subtitlestring—See the type and source declaration for this property.Source
variant Required"error" | "info" | "success" | "warning"
"error""info""success""warning"
—Visual treatment of the component.Source
showboolean—See the type and source declaration for this property.Source
hide Required() => void—See the type and source declaration for this property.Source
title Requiredstring—Main title displayed by the component.Source
themeThemesType—See the type and source declaration for this property.Source
isClosablebooleanfalseSee the type and source declaration for this property.Source
viewsMessageViewStyles—Style overrides for the named internal parts.Source
action(() => void)—See the type and source declaration for this property.Source
actionTextstring—See the type and source declaration for this property.Source
showIconbooleanfalseSee the type and source declaration for this property.Source
timeoutnumber3000See the type and source declaration for this property.Source

For shared layout, color, and responsive properties, read Styling & composition and Responsive layouts. Additional native element attributes depend on the target platform.

Usage guidance

  • Give controls a visible label or an accessible name, and verify keyboard interaction. See Accessibility.
  • For controlled inputs, update the value from the callback shown in the props table. Keep application state in your component or form library.
  • These previews run in the browser. Check React Native setup for platform requirements and differences.
Browse documentation source