0.0.17 • Published 7 months ago

votogether-design-system v0.0.17

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

VoTogether Design System

VoTogether-Design-System is a comprehensive library of common components that features our implementation of VoTogether.

Installation

Install the package in your project directory with:

npm i votogether-design-system

If you want to install devDependencies, try the script below.

npm i -D votogether-design-system

Getting Started

1. Wrap your own components(ex. App) with VDSProvider.

import { VDSProvider } from 'votogether-design-system';

<VDSProvider>
  <App />
</VDSProvider>;

2. Import components from package.

import { RoundButton } from 'votogether-design-system';
// import { RoundButton, SquareButton } from 'votogether-design-system';

export default function SomeComponent() {
  // ...
  return;
  <RoundButton>+</RoundButton>;
}

Usage Example

For example, Team VoTogether is currently using this package.

import { ResponsiveFlex } from 'votogether-design-system';

export default function SomeComponent() {
  // ...
  return (
    <div>
      <ResponsiveFlex
        breakpoint='678px'
        ratio={70}
        $smGap='20px'
        $lgGap='30px'
        $smPadding='60px 15px 0px 0px'
        $lgPadding='20px 80px 40px 60px'
      >
        <S.LeftSide>Left Side of Flex</S.LeftSide>
        <S.RightSide>Right Side of Flex</S.RightSide>
      </ResponsiveFlex>
    </div>
  );
}

Reference1

Reference2

Reference3

Links

storybook

npm

Contributors

License

  • Code and documentation copyright 2023 the VDS Contributors.
  • Code released under the MIT License.

Keywords

React 18, TypeScript, Vite, styled-components, storybook

0.0.12

7 months ago

0.0.13

7 months ago

0.0.14

7 months ago

0.0.15

7 months ago

0.0.16

7 months ago

0.0.17

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.9

7 months ago

0.0.8

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago