Host directive that maps a surfaceType input to a CSS class on the
host element: ui-surface-type-<value>.
Applied automatically to every ui-* component via hostDirectives.
The actual visual treatment is defined in the theme stylesheet — the
directive only manages the class binding.
Built-in types
Type
Intended use
transparent
Fully transparent background
raised
Elevated surface with shadow
sunken
Inset / recessed surface
panel
Generic panel / card surface
Custom types
Define a CSS class with the ui-surface-type- prefix in your stylesheet:
One or more surface types to apply.
Accepts a single type, a space-separated string, or an array.
When unset, falls back to the component's UI_DEFAULT_SURFACE_TYPE provider (if any).
Host directive that maps a
surfaceTypeinput to a CSS class on the host element:ui-surface-type-<value>.Applied automatically to every
ui-*component viahostDirectives. The actual visual treatment is defined in the theme stylesheet — the directive only manages the class binding.Built-in types
transparentraisedsunkenpanelCustom types
Define a CSS class with the
ui-surface-type-prefix in your stylesheet:Then use it on any component:
Multiple types
Pass a space-separated string or an array to combine surface types: