effect-tree - v1.0.36
    Preparing search index...

    Function stackText

    • A column part that joins the given string list vertically.

      At the key curried you will find a version that accepts the horizontal alignment as the only argument in its first argument list.

      At the key rest you will find a version that accepts the strings as a list of arguments.

      Parameters

      • xs: string[]
      • hAlign: "left" | "right" | "center" = 'center'

      Returns Draw.Part

      import {Draw} from 'effect-tree'
      const {drawPart, stackText} = Draw

      const part = stackText.rest('A', 'B', 'C')

      expect(drawPart(part)).toEqual([
      'A',
      'B',
      'C',
      ])
    Index

    Properties

    Properties

    curried: (hAlign?: "left" | "right" | "center") => (xs: string[]) => Draw.Part = ...
    rest: (...xs: string[]) => Draw.Part = ...