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

@dile/dile-action-card

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dile/dile-action-card

Webcomponent dile-action-card to create a card element with buttons

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

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

@dile/dile-action-card

Web Component to create a customized Action Card with Buttons.

Docs and demos

  • Docs and demos on the dile-components site

dile-action-card

Web Component to create a customized Action Card with Buttons.

Installation

npm i @dile/dile-action-card

Usage

Import the component

import '@dile/dile-action-card/dile-action-card.js';

Use the component

<dile-action-card title="Title" options='["Action1","Action2"]'>
      <span slot="subtitle">Info subtitles</span>

</dile-action-card>

Slots

This component has three slots.

  • subtitle slot: for the card info content.
  • subCardsButton slot: for buttons to view subelements
  • subCards slot: for subelements cards.

Properties

  • title: Card title, string (optional).
  • options: Array with Actions titles
  • icons: Array with Icons for dile-button-icon

Custom Events

  • dile-action-card-option-selected: Dispatched when an action button is clicked. In the event detail will emmit the selected action title.

CSS Custom Properties

You can customize it using CSS Custom Properties.

Custom propertyDescriptionDefault
--dile-action-card-borderCard Border2px solid #ccc
--dile-action-card-border-radiusCard Border Radius0
--dile-action-card-background-colorBackground color#f5f5f573
--dile-action-card-header-justify-contentHeader's Horizontal Alignflex-start
--dile-action-card-header-align-contentHeader's Horizontal Alignflex-start
--dile-action-card-header-flex-directionHeader's Flex Directioncolumn-reverse
--dile-action-card-buttons-justify-contentAction buttons horizontal alignflex-start

Keywords

FAQs

Package last updated on 26 Mar 2024

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