001package react4j.dom.proptypes.html.attributeTypes;
002
003import java.lang.annotation.Documented;
004import javax.annotation.Nonnull;
005import org.intellij.lang.annotations.MagicConstant;
006
007/**
008 * An enumeration describing the behavior of the button.
009 */
010@Documented
011@MagicConstant( valuesFromClass = ButtonType.class )
012public @interface ButtonType
013{
014  /**
015   * The button submits the form. This is the default value if the attribute is not specified, or if it is dynamically changed to an empty or invalid value.
016   */
017  @Nonnull
018  String submit = "submit";
019  /**
020   * The button resets the form.
021   */
022  @Nonnull
023  String reset = "reset";
024  /**
025   * The button has no default behaviour.
026   */
027  @Nonnull
028  String button = "button";
029  /**
030   * The button displays a menu.
031   * This is an experimental feature.
032   */
033  @Nonnull
034  String menu = "menu";
035}