Skip to content

Commit

Permalink
better package naming
Browse files Browse the repository at this point in the history
  • Loading branch information
will-wow committed Feb 21, 2024
1 parent e3f6dc7 commit 23d9e58
Show file tree
Hide file tree
Showing 6 changed files with 214 additions and 214 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,24 @@ go get github.com/will-wow/typed-htmx-go

```go
import (
"github.com/will-wow/typed-htmx-go/htmx"
"github.com/will-wow/typed-htmx-go/htmx/swap"
"github.com/will-wow/typed-htmx-go/hx"
"github.com/will-wow/typed-htmx-go/hx/swap"
)

templ SearchInput(search string) {
<form
method="GET"
action={ templ.URL(currentPage) }
class="relative mb-2"
{ htmx.HX().
{ hx.New().
Get(currentPage).
Target("body").
ReplaceURL(true).
Swap(swap.New().ScrollElement("#search-results", swap.Top)).
Build()... }
>
@ui.Input(
htmx.HX().
hx.New().
Get(currentPage).
Trigger("input changed delay:500ms").
More(map[string]any{
Expand Down
2 changes: 1 addition & 1 deletion assets/badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 23d9e58

Please sign in to comment.