Documentation ¶
Index ¶
- Variables
- func Clone(n *html.Node) *html.Node
- func Must(reg Registry, uifs fs.FS, opts Options) *http.ServeMux
- func New(reg Registry, uifs fs.FS, opts Options) (*http.ServeMux, error)
- func ParseComponent(r io.Reader) (*html.Node, error)
- type Attributes
- type CatalogOptions
- type Class
- type Classes
- type Component
- type Examples
- type Options
- type Registry
- type Scripted
- type Styled
Constants ¶
This section is empty.
Variables ¶
View Source
var ParsePage = html.Parse
Functions ¶
Types ¶
type Attributes ¶
Attributes represents the key-value pairs in an HTML element.
func (Attributes) Get ¶
func (a Attributes) Get(key string) string
Get returns the last value associated with the key.
func (Attributes) GetHas ¶
func (a Attributes) GetHas(key string) (string, bool)
GetHas returns the last value associated with the given key.
func (Attributes) GetOr ¶
func (a Attributes) GetOr(key, def string) string
GetOr returns the attribute value if set, otherwise returns the default from the 2nd argument.
func (Attributes) Has ¶
func (a Attributes) Has(key string) bool
Has is used with boolean attributes.
func (Attributes) Set ¶
func (a Attributes) Set(key string, val string)
type CatalogOptions ¶
type Examples ¶
Examples is an optional component interface used to add variants of the component to the catalog. It is also used to ensure that all classes the component makes use of are included in the Tailwind release build.
type Options ¶
type Options struct { // The UI server will be mounted at this point Prefix string // Render and serve all files under this directory PagesRoot string // Serve all files under this directory unmodified PublicRoot string // Logger to use for messages and errors Logger *slog.Logger // Serve a component catalog at this path CatalogPath string // Reload browser when air restarts the app. LiveReload bool }
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
components
|
|
neobrutal/button
build !release
|
build !release |
neobrutal/card
build !release
|
build !release |
neobrutal/checkbox
build !release
|
build !release |
neobrutal/dialog
build !release
|
build !release |
neobrutal/dropdown
build !release
|
build !release |
neobrutal/leftsidebar
build !release
|
build !release |
Click to show internal directories.
Click to hide internal directories.