BaseModifier

class BaseModifier(baseAttrs: @Composable TagBaseFun.() -> Unit) : Modifier.Element(source)

A modifier class for base HTML attributes.

Constructors

Link copied to clipboard
constructor(baseAttrs: @Composable TagBaseFun.() -> Unit)

Functions

Link copied to clipboard
fun Modifier.accesskey(accesskey: Char?): Modifier

Set the accesskey attribute.

Link copied to clipboard

CSS flexbox/grid content alignment.

Link copied to clipboard

CSS flexbox/grid items alignment.

Link copied to clipboard

CSS flexbox items self-alignment.

Link copied to clipboard
fun Modifier.ariaDescribedby(ariaDescribedby: String?): Modifier

Set the aria-describedby attribute.

Link copied to clipboard
fun Modifier.ariaLabel(ariaLabel: String?): Modifier

Set the aria-label attribute.

Link copied to clipboard
fun Modifier.ariaLabelledby(ariaLabelledby: String?): Modifier

Set the aria-labelledby attribute.

Link copied to clipboard
fun Modifier.attribute(name: String, value: String?): Modifier

Set value for the given attribute.

Link copied to clipboard
fun Modifier.attrsModifier(attrs: @Composable TagAttrsFun.() -> Unit): Modifier

Create a modifier instance for given HTML attributes.

Link copied to clipboard

Set the autofocus attribute.

Link copied to clipboard

Background of the current component.

fun Modifier.background(color: Color? = null, image: String? = null, positionX: CssSize? = null, positionY: CssSize? = null, sizeX: CssSize? = null, sizeY: CssSize? = null, size: BgSize? = null, repeat: BgRepeat? = null, origin: BgOrigin? = null, clip: BgClip? = null, attachment: BgAttach? = null): Modifier

Set the background of the current component.

Link copied to clipboard
fun Modifier.baseModifier(baseAttrs: @Composable TagBaseFun.() -> Unit): Modifier

Create a modifier instance for given base HTML attributes.

Link copied to clipboard

Border of the current component.

fun Modifier.border(width: CssSize? = null, style: BorderStyle? = null, color: Color? = null): Modifier

Set the border of the current component.

Link copied to clipboard
fun Modifier.borderBottom(borderBottom: Border?): Modifier

Bottom border of the current component.

fun Modifier.borderBottom(width: CssSize? = null, style: BorderStyle? = null, color: Color? = null): Modifier

Set the bottom border of the current component.

Link copied to clipboard
fun Modifier.borderLeft(borderLeft: Border?): Modifier

Left border of the current component.

fun Modifier.borderLeft(width: CssSize? = null, style: BorderStyle? = null, color: Color? = null): Modifier

Set the left border of the current component.

Link copied to clipboard
fun Modifier.borderRadius(borderRadius: CssSize?): Modifier

CSS border radius.

Link copied to clipboard
fun Modifier.borderRadiusList(borderRadiusList: List<CssSize>?): Modifier

List of CSS border radius values.

Link copied to clipboard
fun Modifier.borderRight(borderRight: Border?): Modifier

Right border of the current component.

fun Modifier.borderRight(width: CssSize? = null, style: BorderStyle? = null, color: Color? = null): Modifier

Set the right border of the current component.

Link copied to clipboard
fun Modifier.borderTop(borderTop: Border?): Modifier

Top border of the current component.

fun Modifier.borderTop(width: CssSize? = null, style: BorderStyle? = null, color: Color? = null): Modifier

Set the top border of the current component.

Link copied to clipboard

Bottom edge of the current component.

Link copied to clipboard

Box shadow of the current component.

fun Modifier.boxShadow(hOffset: CssSize? = null, vOffset: CssSize? = null, blurRadius: CssSize? = null, spreadRadius: CssSize? = null, color: Color? = null, inset: Boolean = false): Modifier

Set the box shadow of the current component.

Link copied to clipboard

List of box shadows of the current component.

Link copied to clipboard
fun Modifier.className(className: String?): Modifier

Set the CSS class of the current component.

Link copied to clipboard

CSS clear float of the current component.

Link copied to clipboard

Clears D&D data for the current component. It also makes it not draggable.

Link copied to clipboard

Unsets the current component as a D&D drop target.

Link copied to clipboard
fun Modifier.clickable(enabled: Boolean = true, onClick: (MouseEvent) -> Unit): Modifier

Add click event listener when enabled is true. This function mimics the behavior of clickable in Jetpack Compose.

Link copied to clipboard

Text color for the current component.

Link copied to clipboard

CSS grid/flex column gap.

Link copied to clipboard
fun Modifier.combinedClickable(enabled: Boolean = true, onLongClick: () -> Unit? = null, onDoubleClick: () -> Unit? = null, onClick: () -> Unit): Modifier

Add click, double-click and long-click events listeners when enabled is true. This function mimics the behavior of combinedClickable in Jetpack Compose. An extension function for the Modifier that allows handling of click, double-click, and long click events. This function combines multiple input events (like mouse and touch) to trigger the respective actions based on the user's interaction.

Link copied to clipboard

CSS cursor shape over the current component.

Link copied to clipboard

CSS Text direction of the current component.

Link copied to clipboard

CSS display of the current component.

Link copied to clipboard
fun Modifier.dndModifier(dnd: @Composable TagDnd.() -> Unit): Modifier

Create a modifier instance for given drag and drop methods.

Link copied to clipboard

Set the draggable attribute.

Link copied to clipboard
fun Modifier.eventsModifier(events: @Composable TagEvents.() -> Unit): Modifier

Create a modifier instance for given common tag events.

Link copied to clipboard
fun Modifier.fillMaxHeight(fraction: Float = 1.0f): Modifier

Set the height of the current component to given (by default maximum) value.

Link copied to clipboard
fun Modifier.fillMaxSize(fraction: Float = 1.0f): Modifier

Set the size (both width and height) of the current component to given (by default minimum) value.

Link copied to clipboard
fun Modifier.fillMaxWidth(fraction: Float = 1.0f): Modifier

Set the width of the current component to given (by default maximum) value.

Link copied to clipboard

CSS flexbox item basis.

Link copied to clipboard

CSS flexbox direction.

Link copied to clipboard
fun Modifier.flexGrow(flexGrow: Int?): Modifier

CSS flexbox item grow.

Link copied to clipboard
fun Modifier.flexShrink(flexShrink: Int?): Modifier

CSS flexbox item shrink.

Link copied to clipboard

CSS flexbox wrap mode.

Link copied to clipboard

CSS position float of the current component.

Link copied to clipboard
@Composable
open override fun <R> fold(initial: R, operation: @Composable (R, Modifier.Element) -> R): R

Accumulates a value starting with initial and applying operation to the current value and each element from left to right.

Link copied to clipboard
fun Modifier.fontFamily(fontFamily: String?): Modifier

CSS font family of the current component.

Link copied to clipboard

CSS font size of the current component.

Link copied to clipboard

CSS font style of the current component.

Link copied to clipboard

CSS font variant of the current component.

Link copied to clipboard

CSS font weight of the current component.

Link copied to clipboard
fun Modifier.gridArea(gridArea: String?): Modifier

CSS grid area.

Link copied to clipboard
fun Modifier.gridAutoColumns(gridAutoColumns: String?): Modifier

CSS grid auto columns.

Link copied to clipboard

CSS grid auto flow.

Link copied to clipboard
fun Modifier.gridAutoRows(gridAutoRows: String?): Modifier

CSS grid auto rows.

Link copied to clipboard
fun Modifier.gridColumn(gridColumn: String?): Modifier

CSS grid column.

Link copied to clipboard
fun Modifier.gridColumnEnd(gridColumnEnd: String?): Modifier

CSS grid column end.

Link copied to clipboard
fun Modifier.gridColumnStart(gridColumnStart: String?): Modifier

CSS grid column start.

Link copied to clipboard

CSS grid row.

Link copied to clipboard
fun Modifier.gridRowEnd(gridRowEnd: String?): Modifier

CSS grid row end.

Link copied to clipboard
fun Modifier.gridRowStart(gridRowStart: String?): Modifier

CSS grid row start.

Link copied to clipboard
fun Modifier.gridTemplate(gridTemplate: String?): Modifier

CSS grid template.

Link copied to clipboard
fun Modifier.gridTemplateAreas(gridTemplateAreas: List<String>?): Modifier

CSS grid areas template.

Link copied to clipboard
fun Modifier.gridTemplateColumns(gridTemplateColumns: String?): Modifier

CSS grid columns template.

Link copied to clipboard
fun Modifier.gridTemplateRows(gridTemplateRows: String?): Modifier

CSS grid rows template.

Link copied to clipboard

Height of the current component.

Link copied to clipboard
fun Modifier.heightIn(min: CssSize? = null, max: CssSize? = null): Modifier

Constrain the height of the component to be between min and max.

Link copied to clipboard

Set the ID attribute of the current component.

Link copied to clipboard

CSS flexbox/grid content justification.

Link copied to clipboard

CSS grid items justification.

Link copied to clipboard

CSS grid items self-justification.

Link copied to clipboard

Left edge of the current component.

Link copied to clipboard
fun Modifier.letterSpacing(letterSpacing: CssSize?): Modifier

CSS Text letter spacing of the current component.

Link copied to clipboard

CSS line break of the current component.

Link copied to clipboard
fun Modifier.lineHeight(lineHeight: CssSize?): Modifier

CSS Text line height of the current component.

Link copied to clipboard

List style of the current component.

fun Modifier.listStyle(type: ListStyleType? = null, position: ListStylePosition? = null, image: String? = null): Modifier

Set the list style of the current component.

Link copied to clipboard

Margin of the current component.

Link copied to clipboard
fun Modifier.marginBottom(marginBottom: CssSize?): Modifier

Bottom margin of the current component.

Link copied to clipboard
fun Modifier.marginLeft(marginLeft: CssSize?): Modifier

Left margin of the current component.

Link copied to clipboard
fun Modifier.marginRight(marginRight: CssSize?): Modifier

Right margin of the current component.

Link copied to clipboard

Top margin of the current component.

Link copied to clipboard

Maximal height of the current component.

Link copied to clipboard
fun Modifier.maxSize(width: CssSize?, height: CssSize?): Modifier

Set the maximal size (both width and height) of the current component.

Link copied to clipboard

Maximal width of the current component.

Link copied to clipboard

Minimal height of the current component.

Link copied to clipboard
fun Modifier.minSize(width: CssSize?, height: CssSize?): Modifier

Set the minimal size (both width and height) of the current component.

Link copied to clipboard

Minimal width of the current component.

Link copied to clipboard
fun Modifier.onBlur(listener: (FocusEvent) -> Unit): Modifier

Add blur event listener.

Link copied to clipboard
fun Modifier.onChange(listener: (Event) -> Unit): Modifier

Add change event listener.

Link copied to clipboard
fun Modifier.onClick(listener: (MouseEvent) -> Unit): Modifier

Add click event listener.

Link copied to clipboard

Add context menu event listener.

Link copied to clipboard

Add double click event listener.

Link copied to clipboard
fun <EV : Event> Modifier.onEvent(name: String, listener: (EV) -> Unit): Modifier

Add event listener by event name.

Link copied to clipboard
fun Modifier.onFocus(listener: (FocusEvent) -> Unit): Modifier

Add focus event listener.

Link copied to clipboard
fun Modifier.onInput(listener: (InputEvent) -> Unit): Modifier

Add input event listener.

Link copied to clipboard

Add key down event listener.

Link copied to clipboard

Add key press event listener.

Link copied to clipboard

Add key up event listener.

Link copied to clipboard

Add mouse down event listener.

Link copied to clipboard

Add mouse leave event listener.

Link copied to clipboard

Add mouse out event listener.

Link copied to clipboard

Add mouse over event listener.

Link copied to clipboard

Add mouse up event listener.

Link copied to clipboard

Add pointer down event listener.

Link copied to clipboard

Add pointer up event listener.

Link copied to clipboard

Add touch cancel event listener.

Link copied to clipboard

Add touch end event listener.

Link copied to clipboard

Add touch start event listener.

Link copied to clipboard

Opacity of the current component.

Link copied to clipboard
fun Modifier.order(order: Int?): Modifier

CSS flexbox item order.

Link copied to clipboard

Outline of the current component.

fun Modifier.outline(width: CssSize? = null, style: OutlineStyle? = null, color: Color? = null): Modifier

Set the outline of the current component.

Link copied to clipboard

CSS overflow of the current component.

Link copied to clipboard

CSS overflow-wrap of the current component.

Link copied to clipboard

CSS overflow-x of the current component.

Link copied to clipboard

CSS overflow-y of the current component.

Link copied to clipboard

Padding of the current component.

Link copied to clipboard
fun Modifier.paddingBottom(paddingBottom: CssSize?): Modifier

Bottom padding of the current component.

Link copied to clipboard
fun Modifier.paddingLeft(paddingLeft: CssSize?): Modifier

Left padding of the current component.

Link copied to clipboard
fun Modifier.paddingRight(paddingRight: CssSize?): Modifier

Right padding of the current component.

Link copied to clipboard
fun Modifier.paddingTop(paddingTop: CssSize?): Modifier

Top padding of the current component.

Link copied to clipboard

CSS position of the current component.

Link copied to clipboard

CSS resize of the current component.

Link copied to clipboard

Right edge of the current component.

Link copied to clipboard

Set the role attribute.

Link copied to clipboard

CSS grid/flex row gap.

Link copied to clipboard
@Composable
fun Modifier.setDragDropData(format: String, data: String): Modifier

Sets D&D data for the current widget. It also makes it draggable.

Link copied to clipboard
@Composable
fun Modifier.setDropTarget(callback: (DragEvent) -> Unit): Modifier
@Composable
fun Modifier.setDropTarget(format: String, callback: (DragEvent) -> Unit): Modifier
@Composable
fun Modifier.setDropTarget(formats: Set<String>?, callback: (DragEvent) -> Unit): Modifier

Sets the current component as a D&D drop target.

Link copied to clipboard
@Composable
fun Modifier.setDropTargetData(format: String, callback: (String?) -> Unit): Modifier

Sets the current component as a D&D drop target with helper callback accepting String data.

Link copied to clipboard
fun Modifier.size(width: CssSize?, height: CssSize?): Modifier

Set the size (both width and height) of the current component.

Link copied to clipboard
fun Modifier.sizeIn(minWidth: CssSize? = null, minHeight: CssSize? = null, maxWidth: CssSize? = null, maxHeight: CssSize? = null): Modifier

Constrain the size (both width and height) of the component to be between min and max.

Link copied to clipboard
fun Modifier.style(name: String, value: String?): Modifier

Set value for the given CSS style.

Link copied to clipboard
fun Modifier.styleModifier(styles: @Composable TagStyleFun.() -> Unit): Modifier

Create a modifier instance for given CSS styles.

Link copied to clipboard
fun Modifier.tabindex(tabindex: Int?): Modifier

Set the tabindex attribute.

Link copied to clipboard

CSS Text align of the current component.

Link copied to clipboard

CSS Text decoration of the current component.

fun Modifier.textDecoration(line: TextDecorationLine? = null, style: TextDecorationStyle? = null, color: Color? = null): Modifier

Set the CSS Text decoration of the current component.

Link copied to clipboard
fun Modifier.textIndent(textIndent: CssSize?): Modifier

CSS Text indent of the current component.

Link copied to clipboard

CSS Text overflow of the current component.

Link copied to clipboard

CSS Text shadow of the current component.

fun Modifier.textShadow(hShadow: CssSize? = null, vShadow: CssSize? = null, blurRadius: CssSize? = null, color: Color? = null): Modifier

Set the CSS Text shadow of the current component.

Link copied to clipboard

CSS Text transform of the current component.

Link copied to clipboard
open infix fun then(other: Modifier): Modifier

Concatenates this modifier with other modifier.

Link copied to clipboard

Set the title attribute.

Link copied to clipboard

Top edge of the current component.

Link copied to clipboard

CSS transition effect for the current component.

fun Modifier.transition(property: String? = null, duration: Double? = null, timingFunction: String? = null, delay: Double? = null): Modifier

Set the CSS transition effect for the current component.

Link copied to clipboard

List of CSS transition effects for the current component.

Link copied to clipboard

CSS Text unicode-bidi of the current component.

Link copied to clipboard
@Composable
open override fun <E : HTMLElement> useOn(tag: ITag<E>)
Link copied to clipboard

CSS Text vertical align of the current component.

Link copied to clipboard

CSS visibility of the current component.

Link copied to clipboard

CSS Text white space of the current component.

Link copied to clipboard

Width of the current component.

Link copied to clipboard
fun Modifier.widthIn(min: CssSize? = null, max: CssSize? = null): Modifier

Constrain the width of the component to be between min and max.

Link copied to clipboard

CSS word break of the current component.

Link copied to clipboard
fun Modifier.wordSpacing(wordSpacing: CssSize?): Modifier

CSS Text word spacing of the current component.

Link copied to clipboard
fun Modifier.zIndex(zIndex: Int?): Modifier

Z-index of the current component.