release: WRNexusJS 0.2.51
This commit is contained in:
@@ -1 +1,11 @@
|
||||
component Banner { props { text = "Announcement" href = "" actionLabel = "Learn more" variant = "brand" } view { <aside class="px-4 py-3 text-center text-sm font-medium {variant === 'warning' ? 'bg-amber-400 text-amber-950' : 'bg-violet-600 text-white'}"><span>{text}</span><a data-show="href" href="{href}" class="ml-2 underline underline-offset-4">{actionLabel} →</a></aside> } }
|
||||
component Banner {
|
||||
props {
|
||||
text = "Announcement"
|
||||
href = ""
|
||||
actionLabel = "Learn more"
|
||||
variant = "brand"
|
||||
}
|
||||
view {
|
||||
<aside class="px-4 py-3 text-center text-sm font-medium {variant === 'warning' ? 'bg-amber-400 text-amber-950' : 'bg-violet-600 text-white'}"><span>{text}</span><a data-show="href" href="{href}" class="ml-2 underline underline-offset-4">{actionLabel} →</a></aside>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user