package testcssusage
import "github.com/a-h/templ/generator/test-css-usage"
Index ¶
- func CSSComponentsAndConstantsAreSupported() templ.Component
- func CSSComponentsAreSupported() templ.Component
- func CSSComponentsCanBeUsedWithArguments() templ.Component
- func ClassNamesAreHTMLEscaped() templ.Component
- func KVCanBeUsedToConditionallySetClasses() templ.Component
- func MapsCanBeUsedToConditionallySetClasses() templ.Component
- func PseudoAttributesAndComplexClassNamesAreSupported() templ.Component
- func Rotate(degrees float64) templ.Component
- func StyleTagsAreSupported() templ.Component
- func TestComponent() templ.Component
Functions ¶
func CSSComponentsAndConstantsAreSupported ¶
Both CSS components and constants are supported. Only string names are really required. There is no need to use templ.Class or templ.SafeClass.
func CSSComponentsAreSupported ¶
func CSSComponentsCanBeUsedWithArguments ¶
func ClassNamesAreHTMLEscaped ¶
Class names are HTML escaped.
func KVCanBeUsedToConditionallySetClasses ¶
func MapsCanBeUsedToConditionallySetClasses ¶
Maps can be used to determine if a class should be added or not.
func PseudoAttributesAndComplexClassNamesAreSupported ¶
Pseudo attributes can be used without any special syntax.
func Rotate ¶
func StyleTagsAreSupported ¶
func TestComponent ¶
Combine all tests.
Source Files ¶
- Version
- v0.3.857 (latest)
- Published
- Mar 25, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 1 week ago –
Tools for package owners.