Tag Builders
Every HTML and SVG element is available globally after importing Nuclo. Build your UI with plain function calls — no JSX required.
Overview
Tag builders accept children, attributes, event modifiers, and arrays. After import 'nuclo', all builders are available globally.
HTML Tags
Full HTML5 coverage with 140+ elements:
Document Structure
html, head, body, header, footer, main, section, article, aside, navContent Sectioning
h1, h2, h3, h4, h5, h6, div, span, p, blockquote, pre, codeLists
ul, ol, li, dl, dt, ddForms
form, input, textarea, button, select, option, label, fieldset, legendTables
table, thead, tbody, tfoot, tr, th, td, caption, col, colgroupMedia
img, video, audio, source, track, canvas, svgInteractive
a, button, details, summary, dialogText Formatting
strong, em, mark, small, del, ins, sub, sup, abbr, cite, q, kbd, samp, varAnd 100+ more—see the full registry.
SVG Tags
Full SVG support for graphics and icons:
SVG Example
Attributes
Pass attributes as objects—values can be static or dynamic functions.
Static Attributes
Dynamic Attributes
Use functions for values that should be re-evaluated on update():
Style Objects
Styles can be objects, strings, or dynamic functions:
Boolean Attributes
Special Attributes
Some attributes are mapped for convenience:
className Merging
Multiple className values are merged rather than overwritten—static strings, dynamic functions, and style helper modifiers all compose.
Conditional Classes
With Style Helpers
Status Pattern
Common pattern for conditional styling:
Modifiers
Objects with __modifier allow behaviors beyond attributes.
Event Modifiers
Style Modifiers
Custom Modifiers
Create your own modifiers for reusable behaviors:
Next Steps
Core API
update(), render(), on(), list(), and when() in depth.
Styling
CSS-in-JS system, style queries, and responsive design.
Pitfalls
Five patterns to avoid when building with Nuclo.
Examples
See tag builders used in real interactive demos.