Example code
Example code
.card.card selectors. As an isolated web component each card lives in its own
shadow root, so those selectors can’t match across the boundary — instead we infer the level on
mount by walking the (light-DOM) ancestor <juo-card> hosts. An explicit level prop always
wins. padding and rounding map to the --padding-* and --radius-* scales.
Usage
Reference
Parameters
Surface level. Omit to infer from DOM nesting; set explicitly for web-component nesting.
Inner padding, from the
--padding-* scale.Corner rounding, from the
--radius-* scale. Defaults to the level’s radius.