Module Ui.Label
Labels.
Labels are for displaying short units of textual content. See the styling information.
Labels
val v :
?class':Jstr.t ->
?enabled:bool Note.signal ->
?tip:Jstr.t Note.signal ->
Brr.El.t list Note.signal ->
Note_brr_kit.Ui.Label.tv ~class' ~enabled ~tip label is a label with:
labelthe label's contents.enabledindicates if the label should look as such. Defaults toNote.S.Bool.true'tipis a tooltip for the label.class'is added to the element's classes.
val enabled : Note_brr_kit.Ui.Label.t -> bool Note.signalenabled l is a signal that is true iff the label is enabled.
val el : Note_brr_kit.Ui.Label.t -> Brr.El.tel l is l's DOM element.
Styling
The element returned by el makes use of the following CSS classes:
ui-labelalways.ui-disabledwheneverenabledisfalse.