Skip to content

line

A single stroked segment, carrying stroke keys but no fill.

Path

component-api:anatomy.<element>.type: line

Styles

Written on the element, not this anatomy entry — under a variant, slot content, or a composition. The style keys an element of this type may carry:

bottom · centerHorizontalOffset · centerVerticalOffset · effects · end · fillColor · layoutSizingHorizontal · layoutSizingVertical · locked · maxHeight · maxWidth · minHeight · minWidth · opacity · position · rotation · start · strokeAlign · strokeDashPattern · strokeWeight · strokes · top · visible · width

Themes

Selected on the element, not this anatomy entry. Any element may select a theme for a token group, or inherit one from the nearest ancestor — deciding what its subtree’s token references resolve to.

Platform bindings

Figma

Disposition: bound · Realised by: LINE node

Rules: typeDetection — with text, glyph, vector, container, ellipse, rectangle, polygon, star

Direct node-type mapping both ways; stroke styling carries the appearance.

CSS

Disposition: approximated · Realised by: Css

Rules: elementSelectors — with text, glyph, vector, container, slot, instance, ellipse, rectangle

A stroke-styled box; the line is its border or background, not a drawn segment.

React

Disposition: approximated · Realised by: a styled div

Stroke styling on a box.

Web Components

Disposition: approximated · Realised by: a styled div

Stroke styling on a box.

Decisions

None.

Source

FormatFile
JSON Schemapackages/schema/schema/component.schema.json
TypeScriptpackages/schema/types/Element.ts
Specification§2, §11