Git Product home page Git Product logo

material-design-sample's Introduction

概要・目的

  • 出来上がったデザインをどのように実装に落とし込むかを体系的に学ぶ演習
  • 実際にReact(TS) + StoryBook + Tailwindを実装する
  • デザイン

現状

  • Buttonコンポーネントの、FilledとOutlinedが実装済みで、StoryBook上で確認できる

目標

  • Iconを表示したButtonコンポーネントをStoryBook上で確認できる
  • Elevated buttonsのStoryをStoryBook上で確認できる

実装関連

ディレクトリ構成

対象のファイルは以下です

.
└── src
    └── stories
        ├── Button.tsx
        └── Button.stories.ts

React(TS)

  • Propsとは
  • JSXとは

Storybook

Tailwind

  • 変数を追加する方法
  • 横並びにする方法
  • スペースを設ける方法

ローカルで作業する手順

  • 前提
    • node,npmがinstall済み
  1. 任意の作業フォルダに移動
  2. 以下のコマンドで、リポジトリを取得
git clone https://github.com/otsukatatsuya/material-design-sample.git
  1. 任意のIDEを用いて、そちらを開く
  2. ルートで、以下のコマンドを実行
npm i
npm run storybook
  1. webサーバーが立ち上がり、正常に閲覧できることを確認する

material-design-sample's People

Contributors

otsukatatsuya avatar

Watchers

 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.