Skip to content

lit-ui-router / LitViewDeclarationElement

Interface: LitViewDeclarationElement<T> ​

Defined in: packages/lit-ui-router/src/interface.ts:317

A LitElement class used directly as a view declaration.

Extends ​

Type Parameters ​

Type ParameterDefault type
T extends DefaultResolvesTypeDefaultResolvesType

Constructors ​

Constructor ​

ts
new LitViewDeclarationElement(props): LitElement & {
  _uiViewProps?: UIViewInjectedProps<T>;
};

Defined in: packages/lit-ui-router/src/interface.ts:317

Construct signature. The router always passes props; classes may declare the parameter required, optional, or not at all.

Parameters ​

ParameterType
propsUIViewInjectedProps<T>

Returns ​

LitElement & { _uiViewProps?: UIViewInjectedProps<T>; }

Inherited from ​

RoutedLitElement.constructor

Properties ​

PropertyTypeDescriptionInherited fromDefined in
sticky?booleanIf true, the same component instance is reused across state transitionsRoutedLitElement.stickypackages/lit-ui-router/src/interface.ts:295