release: WRNexusJS 0.5.12
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
component MarketingSectionHeader {
|
||||
props {
|
||||
id = ""
|
||||
eyebrow = ""
|
||||
title = ""
|
||||
description = ""
|
||||
align = "split"
|
||||
size = "default"
|
||||
color = "primary"
|
||||
actionLabel = ""
|
||||
actionHref = ""
|
||||
actionIcon = ""
|
||||
actionExternal = false
|
||||
class = ""
|
||||
}
|
||||
|
||||
view {
|
||||
<div
|
||||
{...attrs}
|
||||
data-ui-component="MarketingSectionHeader"
|
||||
data-size='{size}'
|
||||
data-color='{color}'
|
||||
class='{class}'
|
||||
>
|
||||
<SectionHeader
|
||||
id='{id}'
|
||||
eyebrow='{eyebrow}'
|
||||
title='{title}'
|
||||
description='{description}'
|
||||
align='{align}'
|
||||
size='{size}'
|
||||
color='{color}'
|
||||
headingLevel="2"
|
||||
maxWidth="3xl"
|
||||
>
|
||||
<div data-slot="icon">
|
||||
<slot name="icon"></slot>
|
||||
</div>
|
||||
|
||||
<div data-slot="actions">
|
||||
{#if actionLabel}
|
||||
<TextLink
|
||||
label='{actionLabel}'
|
||||
href='{actionHref}'
|
||||
external='{actionExternal}'
|
||||
icon='{actionIcon}'
|
||||
iconPosition="start"
|
||||
showArrow="true"
|
||||
color='{color}'
|
||||
/>
|
||||
{/if}
|
||||
<slot name="actions"></slot>
|
||||
</div>
|
||||
|
||||
<slot></slot>
|
||||
</SectionHeader>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user