Skip to content

Instantly share code, notes, and snippets.

@sohalloran
Created December 19, 2018 13:41
Show Gist options
  • Save sohalloran/db95e93e9e82579d6b75dc4113764e5b to your computer and use it in GitHub Desktop.
Save sohalloran/db95e93e9e82579d6b75dc4113764e5b to your computer and use it in GitHub Desktop.
<template>
<article class="slds-card"><div class="slds-card__header slds-grid">
<slot name="title">TITLE</slot>
</div>
<div class="slds-card__body slds-card__body_inner">
<slot name="body">BODY</slot>
<slot></slot>
</div>
</article>
</template>
import { LightningElement } from 'lwc';
export default class Slots extends LightningElement {}
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="slots">
<apiVersion>45.0</apiVersion>
<isExposed>false</isExposed>
</LightningComponentBundle>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment