Created
December 19, 2018 13:41
-
-
Save sohalloran/db95e93e9e82579d6b75dc4113764e5b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { LightningElement } from 'lwc'; | |
export default class Slots extends LightningElement {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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