Coder Social home page Coder Social logo

feb-dain / layout-component Goto Github PK

View Code? Open in Web Editor NEW

This project forked from woowacourse/layout-component

0.0 0.0 0.0 449 KB

Container, FlexContainer, Tab 등 레이아웃 컴포넌트 구현

Home Page: https://65054a5accdaa5b7c9142b51-fcuwgvpksi.chromatic.com/?path=/docs/instruction--docs

JavaScript 1.08% TypeScript 81.84% HTML 0.95% MDX 16.13%

layout-component's Introduction

Yummy Design Component (TS)

Hi! You can create website or app with this library. Before using this, look through Storybook.

📚 Storybook



Get started!

✅ 1. Install this library.

npm

npm i yummy-design-component

yarn

yarn add yummy-design-component

✅ 2. Import components into your file.

import { Container } from 'yummy-design-component';
import { FlexContainer } from 'yummy-design-component';
import { FlexItem } from 'yummy-design-component';
import { Grid } from 'yummy-design-component';

✅ 3. Use it like this!

// Header.tsx

const Header = () => {
  return (
    <FlexContainer tag="header" layout="centerLeft" columnGap={12} px={16}>
      <h1 css={{ fontWeight: 600, fontSize: 16 }}>LOGO</h1>
      <nav>
        <FlexContainer tag="ul" columnGap={12}>
          {Array.from({ length: 4 }, (_, index) => (
            <li>
              <a href={`/MENU${index}`} key={index}>
                MENU{index + 1}
              </a>
            </li>
          ))}
        </FlexContainer>
      </nav>
      <button type="button" aria-label="login" css={{ marginLeft: 'auto' }}>
        LOGIN
      </button>
    </FlexContainer>
  );
};

Development Environment

  • react (with vite)
  • typeScript
  • emotion

Browser Support

Chrome icon Safari icon
Latest ✓ Latest ✓

layout-component's People

Contributors

feb-dain avatar wmakerjun 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.