tinky / Styles
readonlyoptionalalignContent?:"center"|"end"|"start"|"space-around"|"space-between"|"space-evenly"|"stretch"|"flex-end"|"flex-start"
Align content.
Modifies the behavior of flexWrap. It aligns flex lines much like
alignItems aligns flex items.
readonlyoptionalalignItems?:"center"|"end"|"start"|"stretch"|"flex-end"|"flex-start"
Align items. Defines the default behavior for how flex items are laid out along the cross axis on the current line.
<Box alignItems="center">
<Text>I am centered</Text>
</Box>
readonlyoptionalalignSelf?:"auto"|"center"|"end"|"start"|"flex-end"|"flex-start"
Align self.
Allows overriding the alignItems value for specific flex items.
readonlyoptionalbackgroundColor?:LiteralUnion<keyof ForegroundColor,string>
Background color.
Accepts the same values as color in the <Text> component.
readonlyoptionalborderBottom?:boolean
Bottom border visibility.
true;
readonlyoptionalborderBottomColor?:LiteralUnion<keyof ForegroundColor,string>
Bottom border color.
readonlyoptionalborderBottomDimColor?:boolean
Dim bottom border color.
false;
readonlyoptionalborderColor?:LiteralUnion<keyof ForegroundColor,string>
Border color.
Shorthand for setting borderTopColor, borderRightColor,
borderBottomColor, and borderLeftColor.
readonlyoptionalborderDimColor?:boolean
Dim border color.
Shorthand for setting borderTopDimColor, borderBottomDimColor,
borderLeftDimColor, and borderRightDimColor.
false;
readonlyoptionalborderLeft?:boolean
Left border visibility.
true;
readonlyoptionalborderLeftColor?:LiteralUnion<keyof ForegroundColor,string>
Left border color.
readonlyoptionalborderLeftDimColor?:boolean
Dim left border color.
false;
readonlyoptionalborderRight?:boolean
Right border visibility.
true;
readonlyoptionalborderRightColor?:LiteralUnion<keyof ForegroundColor,string>
Right border color.
readonlyoptionalborderRightDimColor?:boolean
Dim right border color.
false;
readonlyoptionalborderStyle?:BoxStyle| keyof Boxes
Border style.
If undefined (default), no border is added.
<Box borderStyle="single">
<Text>Hello World</Text>
</Box>
readonlyoptionalborderTop?:boolean
Top border visibility.
true;
readonlyoptionalborderTopColor?:LiteralUnion<keyof ForegroundColor,string>
Top border color.
readonlyoptionalborderTopDimColor?:boolean
Dim top border color.
false;
readonlyoptionalcolumnGap?:number
Size of the gap between an element's columns.
readonlyoptionaldisplay?:"flex"|"none"|"grid"
Display type of the element.
flex: Displays the element as a flex container (default).grid: Displays the element as a grid container.none: Hides the element.
readonlyoptionalflexBasis?:string|number
Flex basis. Specifies the initial size of the flex item before any available space is distributed.
readonlyoptionalflexDirection?:"column"|"column-reverse"|"row"|"row-reverse"
Flex direction. Establishes the main-axis, defining the direction flex items are placed in the flex container.
<Box flexDirection="column">
<Text>I am item 1</Text>
<Text>I am item 2</Text>
</Box>
readonlyoptionalflexGrow?:number
Flex grow factor. Defines how much a flex item will grow relative to the rest of the flex items when there is available vertical/horizontal space.
readonlyoptionalflexShrink?:number
Flex shrink factor. Defines how much a flex item will shrink relative to the rest of the flex items when there is not enough space.
readonlyoptionalflexWrap?:"nowrap"|"wrap"|"wrap-reverse"
Flex wrap behavior. Defines whether flex items are forced onto one line or can wrap onto multiple lines.
readonlyoptionalgap?:number
Size of the gap between an element's columns and rows.
This is a shorthand for columnGap and rowGap.
readonlyoptionalgridAutoColumns?: (number|TrackSizingFunction)[]
Grid auto columns. Specifies the size of an implicitly-created grid column track.
readonlyoptionalgridAutoFlow?:"column"|"row"|"row-dense"|"column-dense"
Grid auto flow. Controls how the auto-placement algorithm works.
readonlyoptionalgridAutoRows?: (number|TrackSizingFunction)[]
Grid auto rows. Specifies the size of an implicitly-created grid row track.
readonlyoptionalgridColumn?:Line<GridPlacement>
Grid column. Specifies a grid item's size and location within a grid column.
readonlyoptionalgridRow?:Line<GridPlacement>
Grid row. Specifies a grid item’s size and location within a grid row.
readonlyoptionalgridTemplateAreas?:GridTemplateArea[]
Grid template areas. Specifies named grid areas.
readonlyoptionalgridTemplateColumns?: (number|GridTemplateComponent)[]
Grid template columns. Defines the columns of the grid with a space-separated list of values.
readonlyoptionalgridTemplateRows?: (number|GridTemplateComponent)[]
Grid template rows. Defines the rows of the grid with a space-separated list of values.
readonlyoptionalheight?:string|number
Height of the element. Can be a number (in lines) or a percentage string (e.g., "50%").
readonlyoptionaljustifyContent?:"center"|"end"|"start"|"space-around"|"space-between"|"space-evenly"|"flex-end"|"flex-start"
Justify content. Defines the alignment along the main axis.
<Box justifyContent="space-between">
<Text>Left</Text>
<Text>Right</Text>
</Box>
readonlyoptionaljustifyItems?:"center"|"end"|"stretch"|"flex-end"|"flex-start"
Justify items.
Defines the default justify-self for all items of the box.
readonlyoptionaljustifySelf?:"auto"|"center"|"end"|"stretch"|"flex-end"|"flex-start"
Justify self. Sets the way a box is justified inside its alignment container along the appropriate axis.
readonlyoptionalmargin?:number
Margin on all sides.
Equivalent to setting marginTop, marginBottom, marginLeft,
and marginRight.
readonlyoptionalmarginBottom?:number
Bottom margin.
readonlyoptionalmarginLeft?:number
Left margin.
readonlyoptionalmarginRight?:number
Right margin.
readonlyoptionalmarginTop?:number
Top margin.
readonlyoptionalmarginX?:number
Horizontal margin.
Equivalent to setting marginLeft and marginRight.
readonlyoptionalmarginY?:number
Vertical margin.
Equivalent to setting marginTop and marginBottom.
readonlyoptionalminHeight?:string|number
Minimum height of the element.
readonlyoptionalminWidth?:string|number
Minimum width of the element.
readonlyoptionaloverflow?:"hidden"|"visible"
Overflow behavior. Sets the behavior for an element's overflow in both directions.
"visible";
readonlyoptionaloverflowX?:"hidden"|"visible"
Horizontal overflow behavior.
"visible";
readonlyoptionaloverflowY?:"hidden"|"visible"
Vertical overflow behavior.
"visible";
readonlyoptionalpadding?:number
Padding on all sides.
Equivalent to setting paddingTop, paddingBottom, paddingLeft,
and paddingRight.
readonlyoptionalpaddingBottom?:number
Bottom padding.
readonlyoptionalpaddingLeft?:number
Left padding.
readonlyoptionalpaddingRight?:number
Right padding.
readonlyoptionalpaddingTop?:number
Top padding.
readonlyoptionalpaddingX?:number
Horizontal padding.
Equivalent to setting paddingLeft and paddingRight.
readonlyoptionalpaddingY?:number
Vertical padding.
Equivalent to setting paddingTop and paddingBottom.
readonlyoptionalposition?:"absolute"|"relative"
Positioning strategy.
absolute: Positioned relative to the nearest positioned ancestor.relative: Positioned relative to normal position.
readonlyoptionalrowGap?:number
Size of the gap between an element's rows.
readonlyoptionaltextWrap?:"end"|"truncate"|"middle"|"wrap"|"truncate-end"|"truncate-middle"|"truncate-start"
Text wrapping behavior.
wrap: Text wraps to the next line.end: Truncates the end of the text.middle: Truncates the middle of the text.truncate-end: Truncates the end of the text.truncate: Truncates the end of the text.truncate-middle: Truncates the middle of the text.truncate-start: Truncates the beginning of the text.
readonlyoptionalwidth?:string|number
Width of the element. Can be a number (in spaces) or a percentage string (e.g., "50%").