Use generic InputColor component
This commit is contained in:
@ -63,4 +63,13 @@ component InputTags(id string, value []string, label string, tooltip string)
|
||||
RawIcon("plus")
|
||||
|
||||
p!= tooltip
|
||||
|
||||
|
||||
component InputColor(id string, variable string, label string)
|
||||
.widget-section
|
||||
label(for=id)= label
|
||||
|
||||
.color-picker-container
|
||||
.widget-ui-element.color-picker.color-box.action(data-color="var(--" + variable + ")", data-variable=variable, data-action="pickColor", data-trigger="click")
|
||||
|
||||
button.tip(aria-label="Reset", disabled)
|
||||
RawIcon("power-off")
|
||||
|
Reference in New Issue
Block a user