@phase2/outline-card
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

outline-card

The Card component.

Properties

Property Attribute Type Default Description
bgColorContent bgColorContent AllowedColors The color class to apply to the content slot.
bgColorFooter bgColorFooter AllowedColors The color class to apply to the footer slot.
bgColorHeader bgColorHeader AllowedColors The color class to apply to the header slot.
hasContentSlot boolean
hasFooterSlot boolean
hasHeaderSlot boolean
hasShadow has-shadow boolean false Whether or not this card has a shadow.
isRounded is-rounded boolean false Whether or not this is a nested container. If it's nested, remove padding.

Methods

Method Type
contentTemplate (contentBackgroundClasses: ClassInfo): TemplateResult<ResultType> | null
footerTemplate (footerBackgroundClasses: ClassInfo): TemplateResult<ResultType> | null
headerTemplate (headerBackgroundClasses: ClassInfo): TemplateResult<ResultType> | null

Slots

Name Description
content The primary slot to render the card content.
footer The footer slot.
header The header slot.

Package Sidebar

Install

npm i @phase2/outline-card

Weekly Downloads

5

Version

0.0.9

License

BSD-3-Clause

Unpacked Size

258 kB

Total Files

9

Last publish

Collaborators

  • nadavoid
  • grshane
  • dmuzyka
  • mkochendorfer
  • pschuelke
  • yuginaili
  • cclarkdev
  • febbraro
  • himerus
  • shaal