Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sling-web-component-card

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sling-web-component-card

Sling Card

  • 1.12.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

sling-web-component-card

Install

npm install sling-web-component-card

Tag

  <sling-card></sling-card>

Dependencies

  • sling-framework
  • sling-helpers

Attributes and properties

NameTypeDefault ValuesReflectToAttributeObservercallSdk
backgroundheaderBooleanfalse:heavy_check_mark:
nopaddingBooleanfalse:heavy_check_mark:
nopaddingheaderBooleanfalse:heavy_check_mark:
nopaddingbodyBooleanfalse:heavy_check_mark:
nopaddingfooterBooleanfalse:heavy_check_mark:
nodivisorsBooleanfalse:heavy_check_mark:

Description

NameDescription
backgroundheaderDefine the background CSS property of the header.
nopaddingDefines whether the card's header, body and footer will have padding.
nopaddingheaderDefines whether the card's header will have padding.
nopaddingbodyDefines whether the card's body will have padding.
nopaddingfooterDefines whether the card's footer will have padding.
nodivisorsSets whether the card will have lines between header, body and footer.

Events

This component have no events.

Usage

All content that is used inside the tag automatically goes to the body of the card in case you need to use header or footer. use the slot tag to direct the content.

<sling-card>
  <span slot="header">Header</span>
  <div>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
    magna aliqua.
  </div>
  <span slot="footer">Footer</span>
</sling-card>

image

FAQs

Package last updated on 06 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc