cel-tui
    Preparing search index...

    Function VDivider

    • Vertical divider that fills the available height.

      Renders a single character on each row within a 1-cell-wide container. Best used inside an HStack to separate columns.

      The container uses height: "100%" so it fills the parent's cross axis. In an HStack with the default alignItems: "stretch", it automatically matches sibling heights.

      Parameters

      Returns ContainerNode

      A container node 1 cell wide, full parent height.

      // Default thin vertical line
      VDivider()

      // Double line with color
      VDivider({ char: "║", fgColor: "color08" })

      // Separate sidebar from content
      HStack({ height: "100%" }, [
      VStack({ width: 20 }, [Text("sidebar")]),
      VDivider({ fgColor: "color08" }),
      VStack({ flex: 1 }, [Text("content")]),
      ])