1.3.3 • Published 4 years ago

@stone-payments/emd-basic-card v1.3.3

Weekly downloads
1
License
-
Repository
-
Last release
4 years ago

Card

Emerald Card UI component.

Usage

npm install @stone-payments/emd-basic-card
import '@stone-payments/emd-basic-card';
<emd-card>
  <user-details></user-details>
</emd-card>

 <emd-card>
  <h4 slot="header">User Details</h4>
  <emd-icon slot="header-extra" icon="close"></emd-icon>
  <user-details></user-details>
  <p slot="footer">Updated one hour ago</p>
</emd-card>

Attributes and Properties

expandedbody

Controls whether the content has a margin of 20px.

  • Type: Boolean
  • Attribute and property

noscroll

Prevents the component from scrolling the content, which happens by default. When noscroll is used, the content itself becomes responsible for scrolling.

  • Type: Boolean
  • Attribute and property

CSS Properties

--emd-card-header-background

Sets the Card header's background.

  • Default: transparent

--emd-card-body-background

Sets the Card body's background.

  • Default: transparent

--emd-card-footer-background

Sets the Card footer's background.

  • Default: transparent

Slots

Default

The component's content. Usually another component, but it can be anything.

header

The component's header, at the top.

header-extra

The component's area for action buttons, i.e. a close icon, at the top-right corner.

footer

The component's header, at the bottom.

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago