Quaff

QSeparatorHorizontal

Separators divide groups of content with a horizontal or vertical line. Adjust spacing and insets, with an optional label.

Bakery receipt


ORDER 028

2 × Cardamom bun €7.00

Collection at the counter

info QSeparatorHorizontal API Source

color
?: string = "outline-variant"
Color of the separator line.

inset
?: QSeparatorInset = false
Insets the separator by 16px from the selected side. `true` is an alias for "both".

size
?: CssValue | number = undefined
Size of the component using CSS size values (e.g. "40px", "1rem"). If a number is provided, it will be converted to a px value.

spacing
?: QSize = "none"
Spacing around the separator.

text
?: string = undefined
Text to display. Its position on the separator is determined by the textAlign prop.

textAlign
?: "left" | "center" | "right" = vertical ? "middle" : "center"
Horizontal alignment of the text when text prop is used.

vertical
?: false = false
Sets the separator orientation to horizontal.
info QSeparatorVertical API Source

color
?: string = "outline-variant"
Color of the separator line.

inset
?: QSeparatorInset = false
Insets the separator by 16px from the selected side. `true` is an alias for "both".

size
?: CssValue | number = undefined
Size of the component using CSS size values (e.g. "40px", "1rem"). If a number is provided, it will be converted to a px value.

spacing
?: QSize = "none"
Spacing around the separator.

text
?: string = undefined
Text to display. Its position on the separator is determined by the textAlign prop.

textAlign
?: "top" | "middle" | "bottom" = vertical ? "middle" : "center"
Vertical alignment of the text when text prop is used.

vertical
?: true = false
Sets the separator orientation to vertical.

Usage

Horizontal Spacing and Insets
A plain separator spans its container. Use spacing for the margin around the line and inset for a 16px inset on the left, right, or both sides. inset is shorthand for inset="both". Both lines below share the selected settings.

Order 028


Country sourdough€6.50
2 × Cardamom bun€7.00

Total€13.50
Text, Color and Thickness
Add text and choose textAlign: left, center, or right. color accepts theme names and CSS colors; size sets line thickness using a number in pixels or a CSS length.
Show divider text

Bread and rolls


SWEET BAKES

Cardamom buns and apricot galettes

Vertical Dividers
Use vertical between columns in a container with enough height. Vertical text alignment is top, middle, or bottom. For vertical dividers, inset="left" trims the top, inset="right" trims the bottom, and inset trims both. Vertical spacing adds horizontal margins to the line.
Inset both ends

Eat in

Served on a plate


or

Take away

Wrapped in paper

Decorative Lines and Accessibility
Separators render native <hr> elements with the matching aria-orientation. Their text complements real headings; it does not replace them. Use aria-hidden="true" for a purely decorative line, and keep essential information outside it.

Allergen information

Ask at the counter before ordering.