euporie.core.widgets.forms.Swatch

class euporie.core.widgets.forms.Swatch(color: str | Callable[[], str] = '#FFFFFF', width: int = 2, height: int = 1, style: str | Callable[[], str] = 'class:input, swatch', border: GridStyle =  ▁▁  🮇 │▎ 🮇─┼▎  ▔▔, show_borders: DiBool | None = None)

An widget which displays a given color.