Variable ViraColorSwatchConst
ViraColorSwatch: DeclarativeElementDefinition<
"vira-color-swatch",
RequireAtLeastOneHelper<
{
backgroundColor: string
| Readonly<Color>;
foregroundColor: string | Readonly<Color>;
},
"foregroundColor"
| "backgroundColor",
>,
{},
{},
"vira-color-swatch-",
"vira-color-swatch-",
readonly [],
readonly [],
> = ...
Show a background and/or foreground color. Note that if a foreground color is provided that it is not actually applied to anything, you must provide a child element for it to be applied to.