@qomponent/qui-card

1.0.1 • Public • Published

qui-card

Card UI component

Installation

npm i @qomponent/qui-card

Usage

import '@qomponent/qui-card';
<div class="cards">
    <qui-card header="Small">
        <div slot="content">
            <div class="cardcontents">
                <span>Hello</span>
            </div>
        </div>
    </qui-card> 

Header

Basic string header can be provided with the header attribute, example:

<qui-card header = "Here the header">
    
</qui-card>

More complex header can be provided with the header slot, example:

<qui-card>
    <div slot="header">
        <span>Here the header</span>
    </div>
</qui-card>

Footer

Basic string footer can be provided with the footer attribute, example:

<qui-card footer = "Here the header">
    
</qui-card>

More complex footer can be provided with the footer slot, example:

<qui-card>
    <div slot="footer">
        <span>Here the footer</span>
    </div>
</qui-card>

Example

To run the example:

npm install
npm start

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

Apache 2

Package Sidebar

Install

npm i @qomponent/qui-card

Homepage

quarkus.io

Weekly Downloads

5

Version

1.0.1

License

Apache-2.0

Unpacked Size

18.2 kB

Total Files

6

Last publish

Collaborators

  • phillip.kruger