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

com.vaadin.flow.component.button.ButtonVariant Maven / Gradle / Ivy

There is a newer version: 24.5.5
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.button;

/**
 * Set of theme variants applicable for {@code vaadin-button} component.
 */
public enum ButtonVariant {
    LUMO_SMALL("small"), LUMO_LARGE("large"), LUMO_TERTIARY(
            "tertiary"), LUMO_TERTIARY_INLINE("tertiary-inline"), LUMO_PRIMARY(
                    "primary"), LUMO_SUCCESS("success"), LUMO_ERROR(
                            "error"), LUMO_CONTRAST("contrast"), LUMO_ICON(
                                    "icon"), MATERIAL_CONTAINED(
                                            "contained"), MATERIAL_OUTLINED(
                                                    "outlined");

    private final String variant;

    ButtonVariant(String variant) {
        this.variant = variant;
    }

    /**
     * Gets the variant name.
     *
     * @return variant name
     */
    public String getVariantName() {
        return variant;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy