1.0.1 • Published 19 days ago

@qomponent/qui-card v1.0.1

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
19 days ago

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

1.0.1

19 days ago

1.0.0

19 days ago