Skip to content
Search
K
Main Navigation
Start
Learn
Reference
Playground
Appearance
Return to top
gsx
Playground
Component declaration
Go code block
Void elements
Raw-text elements
HTML comments
Attribute comments
Content comments
Field access
Function (T, error) unwrap
Error unwrap: childprop
Boolean Attributes
Conditional Attributes
Spread Attributes
Ordered Attributes
Attribute Contexts
Bring-your-own props
Props heuristic
Whole-struct splat
Class & style merging
Filter arguments
Pipelines in attribute context
Interpolation & props
Expression Attributes
Auto-escaping & safe raw
If / else
Loops over lists
Switch
Components & props
Children
Named slots
Template composition
Explicit attribute forwarding
Method components
Generic components
Explicit type arguments
Composable class
Style blocks
Pipelines / filters
Fragments
Forms
JS attributes & data islands
Full HTML document
Init statement
Script interpolation
Attribute-local JS handler
Alpine dropdown
Complete Alpine search
JSON attribute values
Raw HTML
Reading context
▾
edited · press Run
auto-run
Format
Share
Run
Component
.gsx
render — the expression to render
Greeting(GreetingProps{Name: "World", Count: 3})
Preview
HTML
Generated Go
Problems
— no output —
— no output —
✓ no problems