release: WRNexusJS 0.2.48
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
component Section {
|
||||
props { id = "" size = "default" surface = "default" className = "" }
|
||||
view {
|
||||
<section id="{id}" class="{size === 'compact' ? 'py-10 sm:py-14' : size === 'spacious' ? 'py-20 sm:py-28' : 'py-14 sm:py-20'} {surface === 'muted' ? 'bg-slate-50 dark:bg-slate-900/50' : surface === 'brand' ? 'bg-violet-600 text-white' : ''} {className}"><slot /></section>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user