@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    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.

    Type Intended use
    transparent Fully transparent background
    raised Elevated surface with shadow
    sunken Inset / recessed surface
    panel Generic panel / card surface

    Define a CSS class with the ui-surface-type- prefix in your stylesheet:

    .ui-surface-type-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    }

    Then use it on any component:

    <ui-card surfaceType="glass"></ui-card>
    

    Pass a space-separated string or an array to combine surface types:

    <ui-card surfaceType="raised glass"></ui-card>
    <ui-card [surfaceType]="['raised', 'glass']"></ui-card>
    Index

    Constructors

    Properties

    Constructors

    Properties

    surfaceType: InputSignal<SurfaceType | SurfaceType[]> = ...

    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).