2.1.1 • Published 6 years ago

@materialr/card v2.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

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
2.1.1

6 years ago

2.1.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago