com.vaadin.flow.component.textfield.TextAreaVariant Maven / Gradle / Ivy
/**
* Copyright 2000-2024 Vaadin Ltd.
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See {@literal } for the full
* license.
*/
package com.vaadin.flow.component.textfield;
/**
* Set of theme variants applicable for {@code vaadin-text-area} component.
*/
public enum TextAreaVariant {
LUMO_SMALL("small"), LUMO_ALIGN_CENTER("align-center"), LUMO_ALIGN_RIGHT(
"align-right"), LUMO_HELPER_ABOVE_FIELD(
"helper-above-field"), MATERIAL_ALWAYS_FLOAT_LABEL(
"always-float-label");
private final String variant;
TextAreaVariant(String variant) {
this.variant = variant;
}
/**
* Gets the variant name.
*
* @return variant name
*/
public String getVariantName() {
return variant;
}
}