// Code generated by templ - DO NOT EDIT. // templ: version: v0.3.960 // Code generated by wa-generator. DO NOT EDIT. // Source: Web Awesome wa-dropdown package wa //lint:file-ignore SA4006 This context is only used if a nested component is present. import "github.com/a-h/templ" import templruntime "github.com/a-h/templ/runtime" import ( "github.com/a-h/templ" ) // Dropdowns display a list of options that can be triggered by a button or other element. They support // // Web Awesome component: // DropdownProps holds all properties for the wa-dropdown component type DropdownProps struct { // Opens or closes the dropdown. Open bool `attr:"open"` // The dropdown's size. // Valid values: "small", "medium", "large" Size string `attr:"size"` // The placement of the dropdown menu in reference to the trigger. The menu will shift to a more optimal location if // Valid values: "top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "right", "right-start", "right-end", "left", "left-start", "left-end" Placement string `attr:"placement"` // The distance of the dropdown menu from its trigger. Distance float64 `attr:"distance"` // The offset of the dropdown menu along its trigger. Skidding float64 `attr:"skidding"` // Events // Emitted when the dropdown is about to show. OnShow string `attr:"x-on:wa-show"` // Emitted after the dropdown has been shown. OnAfterShow string `attr:"x-on:wa-after-show"` // Emitted when the dropdown is about to hide. OnHide string `attr:"x-on:wa-hide"` // Emitted after the dropdown has been hidden. OnAfterHide string `attr:"x-on:wa-after-hide"` // Emitted when an item in the dropdown is selected. OnSelect string `attr:"x-on:wa-select"` // Slots contains named slot content Slots DropdownSlots // Attrs contains additional HTML attributes Attrs templ.Attributes } // DropdownSlots holds named slot content for the component type DropdownSlots struct { // The element that triggers the dropdown, such as a or