New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@materialr/card

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@materialr/card

Material card implementation for React

latest
Source
npmnpm
Version
2.1.1
Version published
Maintainers
1
Created
Source

MaterialR Card

Build Status Coverage Status NSP Status semantic-release

Material card implementation for React

Installation

$ npm install --save @materialr/card

Demo

A full demo is available on the MaterialR website showcasing all variants.

Components

Named exports

import { ActionButton } from '@materialr/card';

Props

PropTypeRequiredDefaultDescription
childrennodeYesN/AThe child elements to render inside the action button
classNamestringNoundefinedAdditional classNames to add
disabledboolNofalseWhether the action button is disabled
onClickfuncNoundefinedThe click handler method
rippleboolNofalseWhether the action button has a ripple enabled
import { ActionButtons } from '@materialr/card';

Props

PropTypeRequiredDefaultDescription
childrennodeYesN/AThe child elements to render inside the action buttons
classNamestringNoundefinedAdditional classNames to add
import { ActionIcon } from '@materialr/card';

Props

PropTypeRequiredDefaultDescription
classNamestringNoundefinedAdditional classNames to add
iconstringYesN/AThe material icon to render
titlestringNoundefinedThe title attribute for the icon
import { ActionIcons } from '@materialr/card';

Props

PropTypeRequiredDefaultDescription
childrennodeYesN/AThe child elements to render inside the action icons
classNamestringNoundefinedAdditional classNames to add
import { ActionIconToggle } from '@materialr/icon-toggle';

Props

PropTypeRequiredDefaultDescription
classNamestringNoundefinedAdditional classNames to add
disabledboolNofalseWhether the icon-toggle is disabled
iconOffstringYesN/AThe material icon to render for the off state
iconOnstringYesN/AThe material icon to render for the on state
labelOffstringYesN/AThe title to add to the icon-toggle in the off state
labelOnstringYesN/AThe title to add to the icon-toggle in the on state
onChangefuncYesN/AThe change handler method
import { Actions } from '@materialr/card';

Props

PropTypeRequiredDefaultDescription
childrennodeYesN/AThe child elements to render inside the action icons
classNamestringNoundefinedAdditional classNames to add
fullBleedboolNofalseWhether to render a full width action
import { Card } from '@materialr/card';

Props

PropTypeRequiredDefaultDescription
childrennodeYesN/AThe child elements to render inside the action icons
classNamestringNoundefinedAdditional classNames to add
outlinedboolNofalseWhether to render an outlined card
import { MediaContent } from '@materialr/card';

Props

PropTypeRequiredDefaultDescription
childrennodeYesN/AThe child elements to render inside the media content
classNamestringNoundefinedAdditional classNames to add
import { Media, MEDIA_ASPECT_RATIO_1_1, MEDIA_ASPECT_RATIO_16_9 } from '@materialr/card';

Props

PropTypeRequiredDefaultDescription
aspectRatioenum (MEDIA_ASPECT_RATIO_1_1/MEDIA_ASPECT_RATIO_16_9)NoMEDIA_ASPECT_RATIO_16_9The aspect ratio of the media
childrennodeYesN/AThe child elements to render
classNamestringNoundefinedAdditional classNames to add

Keywords

React

FAQs

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