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

@detachhead/smui-card

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@detachhead/smui-card

Svelte Material UI - Card

  • 7.0.0-beta.0-7aa154b58dd17d39757ade237397a003da4f0bdc
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Svelte Material UI - Cards

A container for media and actions.

Installation

npm install --save-dev @smui/card

Examples and Usage Information

https://sveltematerialui.com/demo/card

Exports

(default)

A card.

Options / Defaults

  • use: [] - An array of Svelte actions and/or arrays of an action and its options.
  • class: '' - A CSS class string.
  • variant: 'raised' - The card's style variant. ('raised' or 'outlined')
  • padded: false - Whether to apply padding to the card. You can also use a Content component to achieve the same effect.

Content

A fragment used as a content area within a card.

Equivalent to the ClassAdder with Div common component.

Note that you can supply your own component to a ClassAdder based component. You can use this to create things like list cards.

PrimaryAction

An interactive portion of the card. Meant to be the primary way to interact with the card.

Options / Defaults

  • use: [] - An array of Svelte actions and/or arrays of an action and its options.
  • class: '' - A CSS class string.
  • ripple: true - Whether to implement a ripple for when the component is interacted with.
  • color: undefined - A color, passed to the Ripple action. ('primary', or 'secondary')
  • padded: false - Whether to apply padding to the area.
  • tabindex: 0 - The tabindex of the area.

Media

An area of the card meant to show media content.

Options / Defaults

  • use: [] - An array of Svelte actions and/or arrays of an action and its options.
  • class: '' - A CSS class string.
  • aspectRatio: undefined - Add styling to maintain a given aspect ratio. ('square' or '16x9')

MediaContent

An area of the card within the media meant to show content over top of the media.

Equivalent to the ClassAdder with Div common component.

Actions

An area of the card containing interactive actions.

Options / Defaults

  • use: [] - An array of Svelte actions and/or arrays of an action and its options.
  • class: '' - A CSS class string.
  • fullBleed: false - Whether to style the actions as full bleed, meaning they take up the whole width of the card.

ActionButtons

An area of the card, within Actions, containing buttons.

Equivalent to the ClassAdder with Div common component.

ActionIcons

An area of the card, within Actions, containing icon buttons.

Equivalent to the ClassAdder with Div common component.

More Information

See Cards in the Material design spec.

See Card in MDC-Web for information about the upstream library's architecture.

Keywords

FAQs

Package last updated on 25 Nov 2022

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