-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from axzilla/dev
merge into dev
- Loading branch information
Showing
10 changed files
with
831 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package pages | ||
|
||
import ( | ||
"github.com/axzilla/templui/internal/ui/layouts" | ||
"github.com/axzilla/templui/internal/ui/modules" | ||
"github.com/axzilla/templui/internal/ui/showcase" | ||
) | ||
|
||
templ Timepicker() { | ||
@layouts.DocsLayout() { | ||
@modules.PageWrapper(modules.PageWrapperProps{ | ||
Name: "Timepicker", | ||
Description: templ.Raw("A native time selector with support for 12/24 hour formats."), | ||
Tailwind: true, | ||
Alpine: true, | ||
}) { | ||
@modules.ExampleWrapper(modules.ExampleWrapperProps{ | ||
ShowcaseFile: showcase.TimepickerDefault(), | ||
PreviewCodeFile: "timepicker_default.templ", | ||
ComponentCodeFile: "timepicker.templ", | ||
}) | ||
@modules.Usage(modules.UsageProps{ | ||
ComponentName: "Timepicker", | ||
NeedsHandler: true, | ||
PropsExample: "...", | ||
}) | ||
@modules.ContainerWrapper(modules.ContainerWrapperProps{Title: "Examples"}) { | ||
@modules.ExampleWrapper(modules.ExampleWrapperProps{ | ||
SectionName: "12h Format", | ||
ShowcaseFile: showcase.TimePicker12Hour(), | ||
PreviewCodeFile: "timepicker_12hour.templ", | ||
ComponentCodeFile: "timepicker.templ", | ||
}) | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package showcase | ||
|
||
import "github.com/axzilla/templui/pkg/components" | ||
|
||
templ TimePicker12Hour() { | ||
<div class="w-full max-w-sm"> | ||
@components.Timepicker(components.TimepickerProps{ | ||
Use12Hours: true, | ||
}) | ||
</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package showcase | ||
|
||
import "github.com/axzilla/templui/pkg/components" | ||
|
||
templ TimepickerDefault() { | ||
<div class="w-full max-w-sm"> | ||
@components.Timepicker(components.TimepickerProps{}) | ||
</div> | ||
} |
Oops, something went wrong.