Sign up (with export icon)

TableColorConfig

Api-typedef icon typedef

An array of color definitions (either strings or objects).

const colors = [
	{
		color: 'hsl(0, 0%, 60%)',
		label: 'Grey'
	},
	'hsl(0, 0%, 80%)',
	{
		color: 'hsl(0, 0%, 90%)',
		label: 'Light grey'
	},
	{
		color: 'hsl(0, 0%, 100%)',
		label: 'White',
		hasBorder: true
	},
	'#FF0000'
]
Copy code

Usually used as a configuration parameter, for instance in config.table.tableProperties or config.table.tableCellProperties.