All Projects → lalamove → karang

lalamove / karang

Licence: MIT license
React components library that implement Lalamove Design.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to karang

Leaf Ui
🍃 Leaf-UI: A react component library built using styled-components
Stars: ✭ 98 (+600%)
Mutual labels:  styled-components, ui-library
Smooth Ui
Modern React UI library 💅👩‍🎤🍭
Stars: ✭ 1,583 (+11207.14%)
Mutual labels:  styled-components, ui-library
sugui
UI Components library based on React, Styled Components and React Testing Library
Stars: ✭ 17 (+21.43%)
Mutual labels:  styled-components, ui-library
rocketshoes-react-native
NetShoes Clone with React Native and Redux
Stars: ✭ 38 (+171.43%)
Mutual labels:  styled-components
2019.hackthenorth.com
Hack the North 2019's main website.
Stars: ✭ 52 (+271.43%)
Mutual labels:  styled-components
mapet
Muitas pessoas tem bichinhos de estimação, entre eles os mais comuns são gatos e cachorros. Com a correria do dia a dia pode acontecer deles acabarem escapando, e ai aonde divulgar para ajudarem a encontrá-lo o mais rápido possível? Redes Sociais? WhatsApp? Pensando nisso criamos o mapet, um mapa que você indica aonde seu pet foi visto pela últi…
Stars: ✭ 15 (+7.14%)
Mutual labels:  styled-components
marvel-jarvig
Marvel JARVIG (Just A Rather Very Interesting Game) is a game that lets you find and discover Marvel Comics characters based on their name, image and description!
Stars: ✭ 13 (-7.14%)
Mutual labels:  styled-components
lifemanager
⏱ 한 일을 기록하면 시각화 해서 보여주는 웹 앱⏱
Stars: ✭ 85 (+507.14%)
Mutual labels:  styled-components
neu ui
Prototype and build projects faster using Neu UI - an open source React component library designed to neumorphic style. Built using React, Styled Components, Jest and Storybook.
Stars: ✭ 23 (+64.29%)
Mutual labels:  styled-components
app-intro-lottie-expo
App Intro component with Expo, styled-components and Lottie
Stars: ✭ 46 (+228.57%)
Mutual labels:  styled-components
github-explorer
Explore GitHub repositories - built with React.js and Styled Components.
Stars: ✭ 32 (+128.57%)
Mutual labels:  styled-components
jojo-cards
Card game based on Jojo's Bizarre Adventure (ジョジョの奇妙な冒険)
Stars: ✭ 112 (+700%)
Mutual labels:  styled-components
bharadwaj.duggaraju.com
🧍 My personal website, made with React and Typescript.
Stars: ✭ 38 (+171.43%)
Mutual labels:  styled-components
Frontend
마음을 잇는 현명한 소비 '잇다'🤝
Stars: ✭ 19 (+35.71%)
Mutual labels:  styled-components
react-ssr-hydration
Example of React Server Side Rendering with Styled Components and Client Side Hydration
Stars: ✭ 15 (+7.14%)
Mutual labels:  styled-components
lewis-gatsby-starter-blog
A custom Gatsby starter template to start a blog or personal website.
Stars: ✭ 34 (+142.86%)
Mutual labels:  styled-components
kahi-ui
Straight-forward Svelte UI for the Web
Stars: ✭ 169 (+1107.14%)
Mutual labels:  ui-library
razzle-template
SSR template with React, Effector, TypeScript, ReactRouter, and StyledComponents
Stars: ✭ 62 (+342.86%)
Mutual labels:  styled-components
react-styled-floating-label
Floating label component which works with any HTML input
Stars: ✭ 33 (+135.71%)
Mutual labels:  styled-components
forex-web-app
💱 foreign currency exchange app built with react hooks
Stars: ✭ 17 (+21.43%)
Mutual labels:  styled-components

karang

React components library that implement Lalamove Design, for building products on the web.

📦 Install

Please make sure you install the following dependencies:

{
    "downshift": "^3.3.1",
    "moment": "^2.24.0",
    "polished": "^3.4.1",
    "prop-types": "^15.7.2",
    "react": "^16.9.0",
    "react-dates": "^21.5.0",
    "react-dom": "^16.9.0",
    "react-tooltip": "^3.11.1",
    "styled-components": "^4.3.2"
}

And run the following:

yarn add @lalamove/karang

You may check on our Github Releases page for the version releases.

👩🏻‍💻 Usage

Initialize the library at the top level

You must first initialize the library in order to set configuration globals.

First, please embed the required fonts into your application, for example, you can copy the following code into the <head> element of your web app.

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Sans:400,700" />
<link rel="stylesheet" href="https://fonts.googleapis.com/earlyaccess/notosanstc.css" />

At the top level of your application, instantiate a BaseApp component and pass the rest of your application as its children.

import React from 'react';
import { BaseApp } from '@lalamove/karang';

const App = () => (
  <BaseApp>
    ...children
  </BaseApp>
);

export default App;

Using exported UI components

Quick example to get you started in your own components:

import React, { Fragment } from 'react';
import { Radio } from '@lalamove/karang';

const MyComponent = () => (
  <Fragment>
    <Radio name="payment" value="cash">
      Radio 1
    </Radio>
  </Fragment>
);

export default MyComponent;

We also support partial import for smaller build:

import Radio from '@lalamove/karang/dist/components/Radio';

Right-to-left (RTL) support

All components support right-to-left layout used in languages such as Arabic, Hebrew, and Persian. In order to flip the direction of components, follow these procedure:

Set the HTML attribute dir to rtl on the root element of your application, for example the body:

<body dir="rtl">

On the BaseApp component that you have instantiated at the top level of your application, set rtl props to true:

const App = () => (
  <BaseApp rtl>
    ...children
  </BaseApp>
);

Visit our Storybook page for RTL demos.

👷🏻‍♀️ Contributing to karang

Configure your editor

To enable stylelint for styled-components, configure your editor to have stylelint watch .js files.

Sublime Text

"stylelint": {
  "selector": "source.js"
}

Visual Studio Code

"stylelint.additionalDocumentSelectors": [
  "javascript"
]

WebStorm or other JetBrains IDEs

Install Styled Components plugin in IDE Preferences | Plugins.

Develop with storybook

Run the following commands for development:

yarn storybook ## Start development with Storybook
yarn doc ## Styleguide and usage
yarn test ## Run test
yarn lint:js ## Lint the JavaScript files
yarn lint:css ## Lint the CSS files including styled-components
yarn build ## Build all of the JavaScript files using Babel

Remember to export your components in src/index.js.

This project is maintained by Lalamove. Please read through our contributing guidelines for the contribution.

📄 License

Copyright © 2019 Lalamove. Code released under the MIT License.

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].