@nomensa/pfe-icon-panel

1.0.1 • Public • Published

WIP 🐣: PFElements Icon Panel Element

Usage

<pfe-icon-panel icon="pfe-icon-server">
  <h3 slot="header">This is pfe-icon-panel</h3>
  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
  <pfe-cta slot="footer">
    <a href="https://pfelements.github.io">Learn more about PFElements</a>
  </pfe-cta>
</pfe-icon-panel>

Slots

header

The header of the icon panel

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 icon panel.

Attributes

icon (observed)

The name of the icon that you want to use. If the value of this attribute changes, the new icon will show up in the UI.

Test

npm run test

Build

npm run build

Demo

From the PFElements root directory, run:

npm start

Code style

Icon Panel (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.

Readme

Keywords

Package Sidebar

Install

npm i @nomensa/pfe-icon-panel

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

78.8 kB

Total Files

27

Last publish

Collaborators

  • kleigh