在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):codypearce/material-bread开源软件地址(OpenSource Url):https://github.com/codypearce/material-bread开源编程语言(OpenSource Language):JavaScript 99.0%开源软件介绍(OpenSource Introduction):Material BreadCross Platform React Native Material Design Components
Choose a platform to get startedFeatures
Table of Contents
Quick Start
<BreadProvider>
<Root />
</BreadProvider>
Read the getting started guides for your platform to learn more. DocumentationThe component API docs and curated demos can be found at material-bread.org. See the contributing section to learn how to run the docs locally. More demos for each component can be found at the component Storybook. This environment is used for developing cross-platform, see the contributing section to learn how to set it up locally. Getting StartedGuidesGetting Started with React Native Getting Started with Vue Native Example ReposBoilerplate projects with minimal configuration to get started on each platform. React Native: material-bread-rn-example React Web: material-bread-react-example Electron: material-bread-electron-example MacOS: material-bread-macos-example Windows: material-bread-windows-example NextJS: material-bread-next-example Expo: material-bread-expo-example Vue Native: material-bread-vue-native-example Usageimport React from 'react';
import { Button } from 'material-bread';
function App() {
return <Button type="contained">Click Me</Button>;
} Sponsored BySupported ComponentsA major goal of this library is to match all the components found in the material docs or provide enough demos/instructions that a developer can create a non-supported component from supported components. Keep in mind this still a work in progress so not all functionality from the Material Docs is supported yet. Currently there are 39 distinct components (though what is a full component and what is a subcomponent is somewhat arbitrary), each with many variations, and 4 utility components.
Utility components
ContributingAll contributions are welcome and encouraged. If you are reporting a bug, please follow the bug issue template. If you are proposing an enhancement, please first search the backlogs before creating a new issue. Contribute to libraryStorybook is used as the dev environment for all components on all platforms. You can learn about how to get the storybook environment running locally for all platforms here. Please follow the conventions already in place. For example, most components follow the made up "props for prebuilt, children for custom" pattern. Additionally, make sure you are testing your components across platforms before making a PR. Contribute to docsDocumentation is built using GatsbyJs and all pages are built using react components. You can learn how to get the docs running locally here. Easy first contributionYou can start contribute extremely easily by improving demos or adding more interesting demos to the docs or storybook. Interesting, useful, and plentiful demos is a major goal of the project, so any help in that regard would be greatly appreciated. TestsJest is the current test framework for all components. You can see the result of each component test in our storybook environement under the "Tests" tab. Writing more comprehensive tests is on the roadmap, but please consider contributing to speed this process up. You can run tests locally using You can generate test coverage by running Accessibility
Copyright and LicenseCopyright 2019 Material Bread. Code released under the MIT license. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论