New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mcwv/chips

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mcwv/chips

The Vue Material Adapter for the web chips component

  • 0.1.0-5
  • Source
  • npm
  • Socket score

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

Usage

  <!-- material icons -->
  <mdc-chip-set>
    <mdc-chip leadingIcon="face" trailingIcon="more_vert">Jane Smith</mdc-chip>
    <mdc-chip leadingIcon="face" trailingIcon="more_vert">John Doe</mdc-chip>
  </mdc-chip-set>

  <!-- font-awesome -->
  <mdc-chip-set>
    <mdc-chip :leadingIconClasses="{fa:1,'fa-font-awesome':1 }" :trailingIconClasses="{fa:1,'fa-ellipsis-v':1}">Jane Smith</mdc-chip>
    <mdc-chip :leadingIconClasses="{fa:1, 'fa-smile-o':1}" :trailingIconClasses="{fa:1, 'fa-ellipsis-v':1}">John Doe</mdc-chip>
  <mdc-chip-set>

props

mdc-chip-set

mdc-chip is a compact element that allows a user to enter information or select a choice.

propTypeDefaultDescription
choiceBooleanoptionalOptional. Indicates that the chips in the set are choice chips,
which allow a single selection from a set of options.
filterBooleanoptionalOptional. Indicates that the chips in the set are filter chips,
which allow a multiple selection from a set of options.
inputBooleanoptionalOptional. Indicates that the chips in the set are input chips,
which enable user input by converting text into chips.
mdc-chip

mdc-chip is a compact element that allows a user to enter information or select a choice.

propTypeDefaultDescription
leadingIconStringoptionaloptional leading icon
trailingIconStringoptionalOptional. Indicates a trailing icon which removes the chip from the DOM. Only use with input chips.
leadingIconClassesObjectoptionaloptional leading icon classes (font-awesome)
trailingIconClassesObjectoptionaloptional trailing icon classes (font-awesome)
eventdescription
@MDCChip:interactionemitted on chip interaction (will bubble)
@MDCChip:trailingIconInteractionemitted on trailing icon interaction (will bubble)

Note: Events emitted by material-components-web on mdc-chip interaction appear as normal Vue events (no need for the .native modifier) and also "bubble" so can be listened for on the mdc-chip-set element and will receive the mdc-chip instance in the detail property.

Chips with icons

<mdc-chip-set>
  <mdc-chip leadingIcon="face" trailingIcon="more_vert">Jane Smith</mdc-chip>
  <mdc-chip leadingIcon="face" trailingIcon="more_vert">John Doe</mdc-chip>
</mdc-chip-set>

reference

  • https://material.io/components/web/catalog/chips

Keywords

FAQs

Package last updated on 08 Mar 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