import Button from "./button.wrn" component HeroActions { props { actions: unknown[] = [] align: string = "left" orientation: string = "horizontal" stackOnMobile: boolean = true fullWidthMobile: boolean = true size: string = "default" color: string = "primary" class: string = "" } view {
{#each actions as action, index} {#if action.label}
} style { .wrn-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; } .wrn-hero-actions[data-align="center"] { justify-content: center; } .wrn-hero-actions[data-align="right"] { justify-content: flex-end; } .wrn-hero-actions[data-orientation="vertical"] { flex-direction: column; align-items: stretch; } .wrn-hero-actions[data-full-mobile="true"] { width: 100%; } @media (max-width: 39.999rem) { .wrn-hero-actions[data-stack-mobile="true"] { flex-direction: column; align-items: stretch; } } @media (min-width: 40rem) { .wrn-hero-actions[data-full-mobile="true"] { width: auto; } .wrn-hero-actions__action { width: auto; } } } }