diff --git a/_examples/custom-animations/home.templ b/_examples/custom-animations/home.templ index 99f0cb7..4819f45 100644 --- a/_examples/custom-animations/home.templ +++ b/_examples/custom-animations/home.templ @@ -2,6 +2,26 @@ package main import "github.com/indaco/gropdown" +const ( + profileIcon = ` + + +` + settingsIcon = ` + + +` + + globeIcon = ` + +` + + clickIcon = ` + + +` +) + templ HomePage() { diff --git a/_examples/custom-button-icon/home.templ b/_examples/custom-button-icon/home.templ index 384edcd..3cfa1b6 100644 --- a/_examples/custom-button-icon/home.templ +++ b/_examples/custom-button-icon/home.templ @@ -2,10 +2,30 @@ package main import "github.com/indaco/gropdown" -const buttonIcon = ` +const ( + buttonIcon = ` ` + profileIcon = ` + + +` + settingsIcon = ` + + +` + + globeIcon = ` + +` + + clickIcon = ` + + +` +) + templ HomePage() { @@ -29,7 +49,7 @@ templ HomePage() {
@gropdown.Root("demo") { - @gropdown.Button("Menu") + @gropdown.Button("Menu", gropdown.Icon(buttonIcon)) @gropdown.Content() { @gropdown.Item(gropdown.DropdownItem{Label: "Profile", Href: "/profile", Icon: profileIcon}) @gropdown.Item(gropdown.DropdownItem{Label: "Settings", Href: "/settings", Icon: settingsIcon}) diff --git a/_examples/icon-only-button/home.templ b/_examples/icon-only-button/home.templ index fa3149e..4e9dd2f 100644 --- a/_examples/icon-only-button/home.templ +++ b/_examples/icon-only-button/home.templ @@ -2,6 +2,26 @@ package main import "github.com/indaco/gropdown" +const ( + profileIcon = ` + + +` + settingsIcon = ` + + +` + + globeIcon = ` + +` + + clickIcon = ` + + +` +) + templ HomePage() { diff --git a/_examples/positioning/home.templ b/_examples/positioning/home.templ index 057df90..f436881 100644 --- a/_examples/positioning/home.templ +++ b/_examples/positioning/home.templ @@ -2,6 +2,26 @@ package main import "github.com/indaco/gropdown" +const ( + profileIcon = ` + + +` + settingsIcon = ` + + +` + + globeIcon = ` + +` + + clickIcon = ` + + +` +) + templ HomePage() { diff --git a/_examples/positioning/main.go b/_examples/positioning/main.go index d2363ae..286501c 100644 --- a/_examples/positioning/main.go +++ b/_examples/positioning/main.go @@ -10,7 +10,7 @@ import ( ) func HandleHome(w http.ResponseWriter, r *http.Request) { - config := gropdown.NewConfigBuilder().WithPosition(gropdown.Right).Build() + config := gropdown.NewConfigBuilder().WithPosition(gropdown.Top).Build() configMap := gropdown.NewConfigMap() configMap.Add("demo", config) diff --git a/_examples/theming/home.templ b/_examples/theming/home.templ index b69863f..0ebe9d7 100644 --- a/_examples/theming/home.templ +++ b/_examples/theming/home.templ @@ -2,6 +2,26 @@ package main import "github.com/indaco/gropdown" +const ( + profileIcon = ` + + +` + settingsIcon = ` + + +` + + globeIcon = ` + +` + + clickIcon = ` + + +` +) + templ HomePage() {