tinky / TextProps
Props for the Text component.
aria-hidden?
readonlyoptionalaria-hidden?:boolean
Hide the element from screen readers.
readonlyoptionalaria-label?:string
A label for the element for screen readers.
readonlyoptionalbackgroundColor?:LiteralUnion<ForegroundColorName,string>
Same as color, but for the background.
readonlyoptionalbold?:boolean
Make the text bold.
readonlyoptionalchildren?:ReactNode
Children of the component.
readonlyoptionalcolor?:LiteralUnion<ForegroundColorName,string>
Change text color. Tinky uses Ansis under the hood, so all its functionality is supported.
readonlyoptionaldimColor?:boolean
Dim the color (make it less bright).
readonlyoptionalinverse?:boolean
Inverse background and foreground colors.
readonlyoptionalitalic?:boolean
Make the text italic.
readonlyoptionalstrikethrough?:boolean
Make the text crossed out with a line.
readonlyoptionalunderline?:boolean
Make the text underlined.
readonlyoptionalwrap?:"end"|"truncate"|"middle"|"wrap"|"truncate-end"|"truncate-middle"|"truncate-start"
This property tells Tinky to wrap or truncate text if its width is larger
than the container. If wrap is passed (the default), Tinky will wrap text
and split it into multiple lines. If truncate-* is passed, Tinky will
truncate text instead, resulting in one line with the rest cut off.