Sugar for a thin frame used as a visual divider. Default: horizontal, thickness="1", w="fill".
line
tagseparatorSugar for a thin frame used as a visual divider. Default: horizontal, thickness="1", w="fill".
| Attr | Type | Description |
|---|---|---|
name | string | |
x | number | |
y | number | |
w | number | 'fill' | Unified width. Replaces width + sizing-h. Absent = hug (valid on row/col/stack/text/instance only). "fill" = grow to fill parent. number = fixed px. String forms: '50%' (of parent), '1.5rem', '100vw', 'calc(100% - 16px)' Not valid on frame/img/svg — those require explicit values. |
direction | horizontal vertical | |
thickness | number | Line thickness in px. Default: 1 |
fill | color | token | |
fill-style | string | |
opacity | number | Layer opacity, 0–1. Omitted when 1. |
Example
<line fill="#E5E5EA" /> <line fill="#007AFF" thickness="2" /> <line fill="#E5E5EA" direction="vertical" />