All Projects → BerndWessels → preact-mdc

BerndWessels / preact-mdc

Licence: MIT license
material design components for preact using material-components-web sass styles (for live demo click the link below)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to preact-mdc

aurelia-mdc-web
Aurelia wrapper for Material Design (Web) Components
Stars: ✭ 43 (+86.96%)
Mutual labels:  material-components, material-components-web, material-design-components
material
🎨 Materialize your forum with this Flarum extension that uses the latest guidelines.
Stars: ✭ 14 (-39.13%)
Mutual labels:  material-components, material-components-web, material-design-components
elm-mwc
Experimental Elm bindings to Material Components for the Web Webcomponents library
Stars: ✭ 15 (-34.78%)
Mutual labels:  material-components, material-components-web
preact-token-input
🔖 A text field that tokenizes input, for things like tags.
Stars: ✭ 57 (+147.83%)
Mutual labels:  preact, preact-components
preact-views
📺 Named views for Preact, with easy-as-pie linking between them.
Stars: ✭ 39 (+69.57%)
Mutual labels:  preact, preact-components
Rmwc
A React wrapper for Material Design (Web) Components
Stars: ✭ 1,537 (+6582.61%)
Mutual labels:  mdc, material-components-web
personal-website
Personal website – made with Next.js, Preact, MDX, RMWC, & Vercel
Stars: ✭ 16 (-30.43%)
Mutual labels:  preact, material-components
preact-bind-group
Preact Component to Group Form fields onChange Events to a single Callback
Stars: ✭ 25 (+8.7%)
Mutual labels:  preact, preact-components
preact-perf-profiler
A HOC to enable measuring rendering performance for Preact components
Stars: ✭ 18 (-21.74%)
Mutual labels:  preact, preact-components
preact-custom-scrollbars
⇅ Preact scrollbars component
Stars: ✭ 20 (-13.04%)
Mutual labels:  preact, preact-components
preact-motion
A fork of React-Motion to be used with Preact
Stars: ✭ 28 (+21.74%)
Mutual labels:  preact, preact-components
preact-route-async
Easy asynchronous loading for your router components. For 440B.
Stars: ✭ 36 (+56.52%)
Mutual labels:  preact, preact-components
preact-component-console
A console emulator for preact.
Stars: ✭ 29 (+26.09%)
Mutual labels:  preact, preact-components
Preact Material Components
preact wrapper for "Material Components for the web"
Stars: ✭ 535 (+2226.09%)
Mutual labels:  preact, material-components
django material widgets
Django widgets styled with Material Components for the Web
Stars: ✭ 24 (+4.35%)
Mutual labels:  material-components, material-components-web
preact-styled-jsx-demo
Preact + styled-jsx = 💞
Stars: ✭ 16 (-30.43%)
Mutual labels:  preact
revite
Revolt client built with Preact.
Stars: ✭ 606 (+2534.78%)
Mutual labels:  preact
progressive-web-app-starter
Preact based starter kit for making a Progressive Web App (PWA).
Stars: ✭ 19 (-17.39%)
Mutual labels:  preact
fpreact
fpreact provides an alternative api for creating preact components, heavily inspired by elm.
Stars: ✭ 47 (+104.35%)
Mutual labels:  preact
macos-preact
macos-preact.now.sh
Stars: ✭ 1,019 (+4330.43%)
Mutual labels:  preact

preact-mdc

Overview

This is a preact integration of the awesome material-components-web material design components library.

material-design-components-web

This library is the successor of the awesome but now depricated material-design-lite library.

Goals

We try to provide all available components from material-design-components-web as pure preact components. We try to not use any of the MDC javascript code but only use the MDC sass styles.

Components

  • Button
  • Card
    • CardAction
    • CardActions
    • CardHorizontalBlock
    • CardMedia
    • CardMediaItem
    • CardPrimary
    • CardSubtitle
    • CardSupportingText
    • CardTitle
  • Checkbox
  • CheckboxLabel
  • Drawer
    • DrawerContent
    • DrawerHeader
    • DrawerToolbarSpacer
  • Fab
  • FormField
  • IconToggle
  • List
    • ListDivider
    • ListGroup
    • ListGroupDivider
    • ListGroupHeader
    • ListItem
    • ListItemDetail
    • ListItemText
    • ListItemTextPrimary
    • ListItemTextSecondary
  • Radio
  • Snackbar
  • Switch
  • TextField
  • Toolbar
    • ToolbarRow
    • ToolbarSection
    • ToolbarTitle

Demo

  • Here is a demo project showing all the components and how to use them.
  • Here is a live demo of that project.

Usage

At the moment we directly provide the components written in ES6 as individual modules.

  • Add this library to your project

npm install --save preact-mdc

This requires the following depenencies in your project:

    "material-components-web": "0.8.0",
    "material-design-icons": "^3.0.0",

ES6 NPM webpack

Since preact-mdc components are ES6 components and used directly from the npm package you might need to tweak your webpack.config.

Here is an example:

    module: {
      noParse: /\.min\.js/,
      rules: [{
        test: /\.jsx?$/,
        exclude: [/node_modules(?![\/\\]preact-mdc)/],
        use: [{
          loader: 'babel-loader',
          options: {
            presets: [
              ['es2015', {loose: true, modules: false}]
            ],
            plugins: [
              'transform-class-properties',
              'transform-object-rest-spread',
              ['transform-react-jsx', {pragma: 'h'}]
            ]
          },
        }]
      }

Contributing

You are very welcome to report issues, make PRs and become a contributor.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].