css property

String? get css

Component-level CSS styles.

Use :host to target the component's root element. Lark's scoper replaces :host with & within the scope block, targeting the element that carries the scopeId.

:host {
  display: flex;
  background: #f0f0f0;
}
.btn { color: red; }

For typed styles, use styleSheet instead.

Implementation

String? get css => null;