HTML Tags & CSS Classes
HTML elements
Each Hyperstack component renders a series of HTML (and SVG) elements, using Ruby expressions to control the output.
For example
would create the following HTML:
And this would render a table:
See the predefined tags summary for the complete list of HTML and SVG elements.
Naming Conventions
To distinguish between HTML and SVG tags, builtin components and application defined components the following naming conventions are followed:
ALLCAPS
denotes a HTML, SVG or builtin React psuedo components such asFRAGMENT
.CamelCase
denotes an application defined component class likeTodoList
.
HTML parameters
You can pass any expected parameter to a HTML or SVG element:
Each key-value pair in the parameter block is passed down as an attribute to the tag as you would expect.
CSS
You can specify the CSS class
on any HTML element.
For style
you need to pass a hash using the React style conventions:
Complex Arguments
You can pass multiple hashes which will be merged, and any individual symbols (or strings) will be treated as =true
. For example
will generate
Last updated