{"id":13525304,"url":"https://github.com/developit/preact-mdl","last_synced_at":"2025-04-09T14:13:36.940Z","repository":{"id":57329531,"uuid":"50541843","full_name":"developit/preact-mdl","owner":"developit","description":":boom: A collection of Preact Components that encapsulate Google's Material Design Lite.","archived":false,"fork":false,"pushed_at":"2018-07-18T23:43:09.000Z","size":47,"stargazers_count":188,"open_issues_count":11,"forks_count":20,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-01T22:10:02.093Z","etag":null,"topics":["material","material-design","mdl","preact","ui","ui-kit"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/developit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-27T22:16:37.000Z","updated_at":"2025-01-30T04:37:19.000Z","dependencies_parsed_at":"2022-09-14T19:02:12.000Z","dependency_job_id":null,"html_url":"https://github.com/developit/preact-mdl","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-mdl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-mdl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-mdl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-mdl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developit","download_url":"https://codeload.github.com/developit/preact-mdl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054193,"owners_count":21039952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["material","material-design","mdl","preact","ui","ui-kit"],"created_at":"2024-08-01T06:01:17.535Z","updated_at":"2025-04-09T14:13:36.919Z","avatar_url":"https://github.com/developit.png","language":"JavaScript","readme":"# preact-mdl\n\n[![NPM](http://img.shields.io/npm/v/preact-mdl.svg)](https://www.npmjs.com/package/preact-mdl)\n[![travis-ci](https://travis-ci.org/developit/preact-mdl.svg?branch=master)](https://travis-ci.org/developit/preact-mdl)\n\nA collection of [Preact] Components that encapsulate Google's [Material Design Lite].\n\n## Quick Start\n\n[![Edit Preact Material Design](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/6w66jzw3mn)\n\nGrab the App Skeleton from [JSFiddle](https://jsfiddle.net/developit/weq28uq3/), [Codepen](https://codepen.io/alexkrolick/project/editor/ANGjjr), or [Code Sandbox](https://codesandbox.io/s/6w66jzw3mn)\n\n**Using TypeScript?** [preact-mdl-example](https://github.com/tbekolay/preact-mdl-example) is an instant full project setup.\n\n\n## [Documentation](docs.md)\n\n\n## Installation\n\n```sh\nnpm install --save material-design-lite preact-mdl\n```\n\n## What does it look like?\n\nSee for yourself - `preact-mdl` powers [ESBench](http://esbench.com) and [Nectarine](http://nectarine.rocks).\n\n_Here's some live-action demos:_\n\n\u003cimg src=\"https://i.gyazo.com/d6db6fedde6734bcc8450a4c16611704.gif\" width=\"319\" /\u003e\n\u003cimg src=\"https://i.gyazo.com/892ba9ed1e0c43bd024078d650c01ce4.gif\" width=\"199\" /\u003e\n\n\u003cimg src=\"https://i.gyazo.com/352cc02ba18a811ee36a8a4837688023.gif\" width=\"254\" /\u003e\n\u003cimg src=\"https://i.imgur.com/I6RDmBm.gif\" width=\"122\" /\u003e\n\u003cimg src=\"https://i.gyazo.com/70724d88b290ff47c793cf6f9ddc13f1.gif\" width=\"107\" /\u003e\n\n\n---\n\n\n## Usage\n\n* Add MDL stylesheets to your html\n```html \n\u003c!DOCTYPE html\u003e\n\u003chtml style=\"height: 100%; width: 100%;\"\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"utf-8\"\u003e\n    \u003cmeta name=viewport content=\"width=device-width, initial-scale=1\"\u003e\n    \u003clink rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\"\u003e\n    \u003clink rel=\"stylesheet\" href=\"https://code.getmdl.io/1.2.1/material.indigo-pink.min.css\"\u003e\n    \u003ctitle\u003ePreact-mdl Example\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody style=\"height: 100%; width: 100%;\"\u003e\n  \u003cscript src=\"/bundle.js\"\u003e\u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n* Import mdl module and components from preact-mdl\n\n```JavaScript\nimport { h, Component } from 'preact';\nimport mdl from 'material-design-lite/material';\nimport { Button } from 'preact-mdl';\n\nexport default class MyButton extends Component {\n  render() {\n    return(\n      \u003cdiv\u003e\n        \u003cButton\u003eI am button!\u003c/Button\u003e\n      \u003c/div\u003e\n    )\n  }\n}\n\n```\n\n## Demos\n\nFor now, browse these Open Source projects using `preact-mdl`:\n\n- **[Documentation Viewer](https://github.com/developit/documentation-viewer/)**\n- **[Nectarine.rocks](https://github.com/developit/nectarine.rocks/)**\n- **[Preact Simple Starter](https://github.com/ooade/PreactSimpleStarter)**\n- _[add yours!](https://github.com/developit/preact-mdl/issues)_\n\n\n---\n\n\n### License\n\n[MIT]\n\n\n[Material Design Lite]: http://www.getmdl.io\n[Preact]: https://github.com/developit/preact\n[MIT]: http://choosealicense.com/licenses/mit/\n","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fpreact-mdl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopit%2Fpreact-mdl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fpreact-mdl/lists"}