novdom/parameter/attribute

Functions

pub fn class(value: String) -> Parameter

Adding classes to the component.
Concatenating the classes if the class attribute already exists.

pub fn editable() -> Parameter

Adding the contenteditable attribute to the component.

pub fn style(values: List(#(String, String))) -> Parameter

Adding inline-styles to the component.
Overriding the style attribute if it already exists.

pub fn tailwind(value: String) -> Parameter

Adding tailwind classes to the component.
Uses tailwind-merge to merge the classes if the class attribute already exists.

pub fn tailwind_dynamic(
  value: String,
  variable: #(String, String),
) -> Parameter

Adding tailwind classes to the component.
Uses tailwind-merge to merge the classes if the class attribute already exists.

Search Document