Coder Social home page Coder Social logo

trendingtechnology / medly-components Goto Github PK

View Code? Open in Web Editor NEW

This project forked from medly/medly-components

0.0 0.0 0.0 19.92 MB

๐Ÿงฉ Medly components provides numerous themable react components, each with multiple varitaions of sizes, colors, position etc.

Home Page: https://medlycomponents.com

License: MIT License

JavaScript 0.53% TypeScript 99.42% HTML 0.05%

medly-components's Introduction

Medly Components

Lint, Build, Test react version styled-components version typescript version Commitizen friendly GitHub lerna

Medly Components

Themable React components with various configurations to match your needs.

Documentation

You can checkout the storybook of the components here.

Table of Contents

Getting Started

npx create-react-app medly-components-demo --template typescript
cd medly-components-demo
yarn add styled-components @types/styled-components
yarn add @medly-components/theme @medly-components/utils @medly-components/icons @medly-components/core @medly-components/layout @medly-components/loaders @medly-components/forms

Replace the content of index.tsx with the following:

import { defaultTheme } from '@medly-components/theme';
import { CssBaseline } from '@medly-components/core';
import { ThemeProvider } from 'styled-components';
import React from 'react';
import * as ReactDOM from 'react-dom';
import App from './App';

ReactDOM.render(
 <ThemeProvider theme={defaultTheme}>
  <CssBaseline />
  <App />
 </ThemeProvider>,
 document.getElementById('root')
);

Replace the content in App.tsx with the following:

import React from 'react';
import { Button } from '@medly-components/core';

const App: React.FC = () => <Button variant="solid">Click me!</Button>;

export default App;

If you are using a static property of any component like Modal.Header, you must add "strictNullChecks": false in your tsconfig.json file.

Packages

Library consists of the following five packages:

Core

The Core package consists of almost all basic React components like Avatar, Button, Input, List, Modal, etc.

Icons

The Icons package consists of the most commonly used SVG icons exposed as React components.

Loaders

A few simple SVG loaders exposed as React components.

Layout

The Layout package consists of components that help in creating a page layout using side panels and nav items, which are exposed as React components.

Forms

The Forms package lets you create dynamic forms using simple json.

Theme

Define the theme i.e. the overall look, feel, and style of your website using the Theme package. Each component can be defined individually. For example, all icons of a website can be made solid, the color of all the components can be made orange, etc.

Utils

The Utils package consists of the most commonly used functionalities and components. E.g. String Helper has functions to convert a string to camelCase, case insensitive string comparison etc.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting us the pull requests.

Built With

๐Ÿ”ฅ react

๐Ÿ’… styled-components

โ›‘ typescript

๐Ÿ“š storybook

๐Ÿ’ฅ babel

๐Ÿ react-testing-library

npm scripts

  • yarn build to build components
  • yarn commit to commit with conventional-commit approach
  • yarn lint:css to run the css lint
  • yarn lint:ts to run the ts lint
  • yarn lint to run both css & ts lint
  • yarn test to run tests and type check
  • yarn test:update to update snapshots
  • yarn test:watch to watch tests
  • yarn type-check to run tsc to check types
  • yarn test:jest to run test only
  • yarn storybook to run storybook for live reloading your components
  • yarn release to publish the latest version to npm

medly-components's People

Contributors

abhijithycinth avatar aloralyn avatar ankitasaxena17 avatar aruby-medly avatar ashwini-desai avatar bhimsenp avatar deepikasindhi avatar dependabot-preview[bot] avatar dhirendra777 avatar gmukul01 avatar ishankute avatar isyn avatar jaredgiangrasso avatar kapilgorve avatar kooskoos20 avatar kunalkindra avatar manish-ranjan avatar mbetances805 avatar minheekangg avatar phoenixtw avatar ram-ks avatar ramks10 avatar ryannylander-medlypharmacy avatar sachidananda-panigrahi avatar saylikadam avatar stefan-medly avatar tyrion1920 avatar vaibhaveem11 avatar vitulrana avatar wsameer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.