// Code generated by wa-generator. DO NOT EDIT. // Source: Web Awesome wa-button package wa import ( "github.com/a-h/templ" ) // Buttons represent actions that are available to the user. // // Web Awesome component: // ButtonProps holds all properties for the wa-button component type ButtonProps struct { // The button's theme variant. Defaults to neutral if not within another element with a variant. // Valid values: "neutral", "brand", "success", "warning", "danger" Variant string `attr:"variant"` // The button's visual appearance. // Valid values: "accent", "filled", "outlined", "filled-outlined", "plain" Appearance string `attr:"appearance"` // The button's size. // Valid values: "small", "medium", "large" Size string `attr:"size"` // Draws the button with a caret. Used to indicate that the button triggers a dropdown menu or similar behavior. WithCaret bool `attr:"with-caret"` // Disables the button. Does not apply to link buttons. Disabled bool `attr:"disabled"` // Draws the button in a loading state. Loading bool `attr:"loading"` // Draws a pill-style button with rounded edges. Pill bool `attr:"pill"` // The type of button. Note that the default value is button instead of submit, which is opposite of how native // Valid values: "button", "submit", "reset" Type string `attr:"type"` // The name of the button, submitted as a name/value pair with form data, but only when this button is the submitter. Name string `attr:"name"` // The value of the button, submitted as a pair with the button's name as part of the form data, but only when this Value string `attr:"value"` // When set, the underlying button will be rendered as an with this href instead of a