Overflow

Overflow handling enumeration

Defines how content that exceeds the container boundaries is handled. This corresponds to the CSS overflow property.

Example

import { Style, Overflow } from "taffy-layout"; const style = new Style(); style.overflow = { x: Overflow.Hidden, y: Overflow.Scroll };

Enumeration Members

Enumeration MemberValueDescription
Clip1Content is clipped at the container boundary, but unlike Hidden, this forbids all scrolling
Hidden2Content is clipped at the container boundary
Scroll3Always display scrollbars for scrollable content
Visible0Content is not clipped and may render outside the container

© 2026 ByteLand Technology Limited