@ni/spright-components
Version:
NI Spright Components
18 lines • 720 B
JavaScript
import { html, slotted, ViewTemplate } from '@ni/fast-element';
import { startSlotTemplate, endSlotTemplate } from '@ni/fast-foundation';
export const template = (context, definition) => html `
<div class="container">
${startSlotTemplate(context, definition)}
<section class="message-content">
<slot></slot>
</section>
<section class="footer-actions ${x => (x.footerActionsIsEmpty ? '' : 'has-content')}">
<slot
name="footer-actions"
${slotted({ property: 'slottedFooterActionsElements' })}
></slot>
</section>
${endSlotTemplate(context, definition)}
</div>
`;
//# sourceMappingURL=template.js.map