0.1.2 โ€ข Published 11 months ago

russell-react-ui v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Russell-React-UI

๐Ÿ‘‹ Welcome to Russell-React-UI, a toy component library powered by React and TypeScript~

โœจ Features

  • ๐Ÿ“ฆ A set of out-of-box React components, allowing you to easily build beautiful and user-friendly interfaces.
  • ๐Ÿงฉ Most of the components support custom rendering by the user, providing a certain degree of flexibility.
  • ๐Ÿ›ก๏ธ Written in TypeScript with predictable static types to enhance code maintainability and readability.
  • ๐Ÿ“ Interactive documentation built with Storybook, allowing you to quickly learn how to use each component and its properties.
  • ๐ŸŽจ Powerful theme customization based on Sass to easily customize your component library styles.
  • ๐Ÿž Tested with Jest and React Testing Library to ensure every component works as expected.
  • ๐Ÿงน Ensuring code cleanliness with the use of ESLint, Prettier, and Husky pre-commit check.
  • ๐Ÿค– The above content is automatically generated by ChatGPT based on the introduction of ant-design.

๐Ÿ“ฆ Install

npm i russell-react-ui

๐Ÿš€ Quick Start

import React from 'react'
import 'russell-react-ui/dist/index.css'
import { Select } from 'russell-react-ui'

const Option = Select.Option
function App() {
  const args = {
    multiple: true,
    placeholder: 'Multiple Select',
    maxTagCount: 2,
    defaultValue: ['first option', 'second option', 'third option', 'fourth option'],
  }
  return (
    <div>
      <Select {...args}>
        <Option value="first option" />
        <Option value="second option" />
        <Option value="third option" />
        <Option value="fourth option" />
        <Option value="fifth option" />
        <Option value="sixth option" />
        <Option value="seventh option" />
        <Option value="eighth option" />
      </Select>
    </div>
  )
}

export default App

๐ŸŒ Online Demo

https://russellwzr.github.io/russell-react-ui/

๐Ÿ•Š๏ธ Future Work

Will continue adding new components and updating existing ones in the future, if there's free time and no gugugu๐Ÿ•Š๏ธ๐Ÿ•Š๏ธ๐Ÿ•Š๏ธ......