A text part that is width wide composed entirely of the given string repeated or sliced.
width
import {Draw} from 'effect-tree'const {drawPart, repeatText} = Drawconst part = repeatText(3, 'A')expect(drawPart(part)).toEqual(['AAA']) Copy
import {Draw} from 'effect-tree'const {drawPart, repeatText} = Drawconst part = repeatText(3, 'A')expect(drawPart(part)).toEqual(['AAA'])
A text part that is
widthwide composed entirely of the given string repeated or sliced.Example