D3vugu-components/components/overlay/overlay-classes.go
David Vogel 518c47ab47 Improve overlay package
- Add toast overlays
- Add a way to color overlay containers and menus
- Add d3c-button-transparent CSS class
- Update overlay example page
2023-05-19 23:45:39 +02:00

9 lines
396 B
Go

package overlay
// OverlayClassesGetter can be implemented by components that are used in overlays.
// With this mechanic these components can set additional CSS classes to the modal or toast container.
// One use case is to give a toast or modal some other color with the `d3c-color-*` classes.
type OverlayClassesGetter interface {
OverlayClasses() (signalClasses, containerClasses string)
}