{"id":25127098,"url":"https://github.com/hribb/react-mdl-extra","last_synced_at":"2025-04-23T13:29:53.971Z","repository":{"id":57121187,"uuid":"67966508","full_name":"HriBB/react-mdl-extra","owner":"HriBB","description":"React MDL Extra components","archived":false,"fork":false,"pushed_at":"2018-04-06T05:59:59.000Z","size":840,"stargazers_count":41,"open_issues_count":18,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-23T13:29:43.603Z","etag":null,"topics":["design","material","mdl","react","react-mdl"],"latest_commit_sha":null,"homepage":"https://hribb.github.io/react-mdl-extra/?down=0","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/HriBB.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-12T01:53:57.000Z","updated_at":"2020-01-27T18:13:56.000Z","dependencies_parsed_at":"2022-08-24T04:31:23.467Z","dependency_job_id":null,"html_url":"https://github.com/HriBB/react-mdl-extra","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HriBB%2Freact-mdl-extra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HriBB%2Freact-mdl-extra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HriBB%2Freact-mdl-extra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HriBB%2Freact-mdl-extra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HriBB","download_url":"https://codeload.github.com/HriBB/react-mdl-extra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250440014,"owners_count":21430938,"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":["design","material","mdl","react","react-mdl"],"created_at":"2025-02-08T10:48:23.246Z","updated_at":"2025-04-23T13:29:53.946Z","avatar_url":"https://github.com/HriBB.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React-MDL SelectField\n\n**This project is not maintained anymore. If someone wishes to take over, let me know ;)**\n\nExtra components for [React Material Design Lite](https://github.com/tleunen/react-mdl).\n\nAll components use a custom `Dropdown`, that uses [react-portal](https://github.com/tajo/react-portal) to render itself to document `body`, and [Tether](tether.io) for positioning.\n\n## Installation\n\n```\nnpm install --save react-mdl-extra\n```\n\n## Examples\n\nhttps://hribb.github.io/react-mdl-extra/?down=0\n\n```\ngit clone https://github.com/HriBB/react-mdl-extra\ncd react-mdl-extra\nnpm install\nnpm run storybook\nopen http://localhost:9002/\n```\n\n## Usage\n\n### Dropdown\n\n```\nimport { Dropdown } from 'react-mdl-extra';\n\n\u003cDropdown target={\u003cButton\u003eOpen\u003c/Button\u003e} align={'tl bl'} offset={'0 10px'}\u003e\n  \u003cdiv className={'custom-menu'}\u003e\n    ...\n  \u003c/div\u003e\n\u003c/Dropdown\u003e\n```\n\n### SelectField\n\n```\nimport { SelectField, Option } from 'react-mdl-extra';\n\n\u003cSelectField label={'Select me'} value={3}\u003e\n  \u003cOption value={1}\u003eOne\u003c/Option\u003e\n  \u003cOption value={2}\u003eTwo\u003c/Option\u003e\n  \u003cOption value={3}\u003eThree\u003c/Option\u003e\n  \u003cOption value={4}\u003eFour\u003c/Option\u003e\n  \u003cOption value={5}\u003eFive\u003c/Option\u003e\n\u003c/SelectField\u003e\n```\n\n### MultiSelectField\n\n```\nimport { MultiSelectField, Option } from 'react-mdl-extra';\n\n\u003cMultiSelectField label={'Select me many times'} value={[1,3]}\u003e\n  \u003cOption value={1}\u003eOne\u003c/Option\u003e\n  \u003cOption value={2}\u003eTwo\u003c/Option\u003e\n  \u003cOption value={3}\u003eThree\u003c/Option\u003e\n  \u003cOption value={4}\u003eFour\u003c/Option\u003e\n  \u003cOption value={5}\u003eFive\u003c/Option\u003e\n\u003c/MultiSelectField\u003e\n```\n\n### Menu\n\n```\nimport { Menu, MenuItem } from 'react-mdl-extra';\n\n\u003cMenu target={\u003cButton raised\u003eOpen menu\u003c/Button\u003e}\u003e\n  \u003cMenuItem\u003eOne\u003c/MenuItem\u003e\n  \u003cMenuItem\u003eTwo\u003c/MenuItem\u003e\n  \u003cMenuItem\u003eThree\u003c/MenuItem\u003e\n\u003c/Menu\u003e\n```\n\n### AutoComplete\n\n```\nimport { AutoComplete } from 'react-mdl-extra';\n\nconst items = [\n  { id: 1, name: 'Darth Vader' },\n  { id: 2, name: 'Luke Skywalker' },\n  { id: 3, name: 'Obi Wan Kenobi' },\n]\n\n\u003cAutoComplete\n  label={'I will complete you'}\n  items={items}\n  valueIndex={'id'}\n  dataIndex={'name'}\n/\u003e\n```\n\n## Positioning Dropdown\n\nSee [tether](http://tether.io/). Uses shorthand declaration. First two letter are the `attachment` property, followed by a space and second two letters, which are the `targetAttachment` property.\n\nExamples:\n\n**align=\"tl bl\"**\n\nAttach **t**op **l**eft edge of the dropdown to the **b**ottom **l**eft edge of the target.\n\n**align=\"br tr\"**\n\nAttach **b**ottom **r**ight edge of the dropdown to the **t**op **r**ight edge of the target.\n\n## TODO\n\n- [x] Split Dropdown into a separate component\n- [x] ~~Use native controls on mobile~~\n- [x] ~~Improve AutoComplete on mobile~~\n- [x] Improve styles and remove sass\n- [x] Improve position declaration\n- [x] Create `MultiSelectField`\n- [x] Create `AutoCompleteField`\n- [x] ~~Create `DatePickerField`~~\n- [x] ~~Key and focus handling~~\n- [x] ~~Add tests~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhribb%2Freact-mdl-extra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhribb%2Freact-mdl-extra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhribb%2Freact-mdl-extra/lists"}