Table

<vscode-table>

Properties

breakpoint
Attributebreakpoint
Typenumber
Default300
columns

Initial column sizes in a JSON-encoded array. Accepted values are:

  • number
  • string-type number (ex.: "100")
  • px value (ex.: "100px")
  • percentage value (ex.: "50%")
  • percentage value (ex.: "50%")
  • "auto" keyword
Attributecolumns
Typestring[]
compact reflected

For internal use only

Attributecompact
Typeboolean
Defaultfalse
delayedResizing reflected
Attributedelayed-resizing
Typeboolean
Defaultfalse
minColumnWidth

Minimum column width. Valid values are:

  • number
  • string-type number (ex.: "100")
  • px value (ex.: "100px")
  • percentage value (ex.: "50%")
  • percentage value (ex.: "50%")
  • "auto" keyword
Attributemin-column-width
Typestring
Default'50px'
resizable reflected
Attributeresizable
Typeboolean
Defaultfalse
responsive reflected
Attributeresponsive
Typeboolean
Defaultfalse
version readonly

VSC Element version

Attributes

bordered

Rows and columns are separated by borders

TypeBoolean
bordered-columns

Columns are separated by borders

TypeBoolean
bordered-rows

Rows are separated by borders

TypeBoolean
zebra

Zebra stripes, even rows are tinted.

TypeBoolean
zebra-odd

Zebra stripes, odd rows are tinted.

TypeBoolean

Custom CSS Properties

--border
Defaultvar(--vscode-editorGroup-border)
--font-family
Defaultvar(--vscode-font-family)
--font-size
Defaultvar(--vscode-font-size)
--foreground
Defaultvar(--vscode-foreground)
--header-background
Defaultvar(--vscode-keybindingTable-headerBackground)
--resize-hover-border
Defaultvar(--vscode-sash-hoverBorder)
--tinted-row-background
Defaultvar(--vscode-keybindingTable-rowsBackground)