All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.flow.component.textfield.TextAreaVariant Maven / Gradle / Ivy

There is a newer version: 24.4.12
Show newest version
/**
 * 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy