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

m-dash-ui

Package Overview
Dependencies
Maintainers
7
Versions
241
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

m-dash-ui

## Purpose

  • 4.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
31
decreased by-77.37%
Maintainers
7
Weekly downloads
 
Created
Source

m-dash-ui

Purpose

m-dash-ui is a UI library from Mudano built with React. Its objective is to be an aggregate of beatiful and useful general components to be re-used across teams to build new features. Each component should cover most of the general use-cases and avoid getting into specifics of the features it's being used on.

Documentation

Avatar

A simple user avatar component, with support for showing name initials.

Props
proprequirednesstypedescription
namerequiredstringName of the user
urloptionalstringUrl or base64 for the image
base64optionalbooleanWhether url is base64 or not
showLabeloptionalbooleanWhether to show a label with the user's name below the avatar
sizeoptionalstringCan be either nothing, sm, md or lg. Default size is 42px, sm is 22px, md is 32px and lg is 64px
renderTooltipoptionalfunctionA function that returns jsx or a component with the content of a tooltip
styleoptionalobjectAn object with valid custom css for the avatar
classNameoptionalstringA custom class for the avatar wrapper
onMouseLeaveoptionalfunctionFunction to be called when mouse leaves the avatar
onMouseEnteroptionalfunctionFunction to be called when mouse enters the avatar
onClickoptionalfunctionFunction to be called the avatar is clicked

Iso

Isotope grid component

Props
proprequirednesstypedescription
datarequiredarrayArray of items to be rendered on the grid
itemToKeyrequiredfunctionFunction that transforms each item on a key that's passed to react, so the component doesn't need to infer anything about the items structure
renderItemoptionalfunctionRecommended way of customizing the items rendering. The function receives the following signature: ({ item, removeItem })
compoptionalfunctionUnrecommended way of customizing the items rendering. The component receives the item data spread into its props and a removeMe props for removing the item
verticaloptionalbooleanTransforms the grid view into a vertical list
filteroptionalstringString following the isotope format for filtering the rendered items
itemClassNameoptionalstringCSS class to be passed to the items wrapper
classNameoptionalstringCSS class to be passed to the grid wrapper

FAQs

Package last updated on 21 May 2018

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