npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-md-components

v1.2.8

Published

This is a react module containing a free collection of material design components.

Downloads

40

Readme

Dependabot Status dependencies Status devDependencies Status

DEMO React components based on material.io guidelines handcoded by a normal non-google developer.

Why choose this package

Have you ever wanted to create a website using material design and tried Material-UI? Let's be honest, that package is hard to use, especially if you want to style it your own way, and that's exactly why I've decided to create a similar package that resembles Google's Material Design, but with simple, basic features.

Installation

You can download react-md-components as an npm package.

npm install react-md-components

or

yarn add react-md-components

Usage

All components are exported through the main index.js (I haven't accomplished yet to set it as a flat package); You can find some examples in the docs:

Components

MDDivider

Properties

    MDDivider.primeryColor: string, default: '#000' \\ this defines the color of the divider.

Reference: material.io/components/dividers/

MDCard

Properties

    MDCard.dark: bool, default: false \\ this defines whether the card must use dark mode.
    MDCard.media: string, default: '' \\ this defines the media included in the card. This version only supports images.
    MDCard.title: string, default: '' !required \\ this defines the title of the card. Deprecates MDCardTitle.
    MDCard.subtitle: string, default: '' \\ this defines the secondary text of the card. Deprecates MDCardSubtitle.
    MDCard.accentColor: string, default: '' \\ this defines the accent color of the action buttons.
    MDCard.actions: ArrayOf(Action), default: [] \\ this defines the actions at the bottom of the card.

Actions

    Action.title: string,
    Action.onClick: function

    // e.g:
    {
        title: 'Open github',
        onClick: () => {
            window.open('https://www.github.com/xNicklaj/react-md-components');
        }
    }

MDCardSection

This component has no attributes other than its children.

Full example

    <MDCard 
        media='https://images7.alphacoders.com/909/909467.jpg'
        title='Title goes here'
        subtitle='Secondary text'
        actions={[
            {
                title: 'button'
            },
            {
                title: 'button'
            }
        ]}
    >
        <MDCardSection>Greyhound divisively hello coldly wonderfully marginally far upon excluding.</MDCardSection>
        <MDCardSection>Tags: <b>#reactjs</b></MDCardSection>
        <MDDivider />
    </MDCard>

Reference: material.io/components/cards/

MDButton

Properties

    MDButton.outlined: bool, default: false \\ this makes the button assume an outlined style.
    MDButton.text: bool, default: false \\ this makes the button assume a text-only style.
    MDButton.accentColor: string, default: '' \\ this defines the accent color of the component.
    MDButton.type: string, default: 'button' \\ this defines the type of the button. Check MDN References for more informations on the type attribute of a button.
    MDButton.name: string, default: '' \\ this defines the name of the button.
    MDButton.form: string, default: '' \\ this defines the form the button is linked to.
    MDButton.disabled: bool, default: false \\ this defines whether tthe button is disabled or not.

    Note: the default style will be condensed. To select this, avoid using .text or .outlined.
    Note: only use either .text or .outlined.

Reference: material.io/components/buttons/

MDTextField

Properties

    MDTextField.outlined: bool, default: false \\ this makes the textfield assume an outlined style.
    MDTextField.error: bool, default: false \\ this defines whether the textfield must assume an error identity.
    MDTextField.type: string, default: 'text' \\ this defines the type of the input field.
    MDTextField.accentColor: string, default: '' \\ this defines the accent color of the component.
    MDTextField.name: string, default: '' \\ this defines the name of the textfield in the dom.
    MDTextField.value: string, default: '' \\ this defines the default value of the text field.
    MDTextField.disabled: true, default: false \\ this defines the disabled attribute of the input field.

Reference: material.io/components/textfields/

TO-DO

  • MDFloatingButton: this component is still in beta and its documentation will be released upon its completion.
  • MDBanners
  • Chips
  • Fix: dynamic child assignment in cards not working.

License

This library is using MIT License.