@nomensa/pfe-card
v1.0.16
Published
Cards for PatternFly Elements
Downloads
4
Readme
PFElements Card Element
Usage
<pfe-card>
<h2 slot="header">RH Card</h2>
This is the pfe-card body.
<div slot="footer">Text in footer</div>
</pfe-card>
Slots
header
If this slot is used, we expect a heading level tag (h1, h2, h3, h4, h5, h6) to be used here.
Default slot (body)
Any content that is not designated for the header or footer slot, will go to this slot.
footer
Use this slot for anything that you want in the footer of the card.
Test
npm run test
Build
npm run build
Demo
From the PFElements root directory, run:
npm start
Code style
Card (and all PFElements) use Prettier to auto-format JS and JSON. The style rules get applied when you commit a change. If you choose to, you can integrate your editor with Prettier to have the style rules applied on every save.