mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
adding documentation
This commit is contained in:
32
docs/step2-02/README.md
Normal file
32
docs/step2-02/README.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# Step 2.2: UI Fabric Component Library
|
||||
|
||||
[Lessons](../) | [Exercise](./exercise/) | [Demo](./demo/)
|
||||
|
||||
UI Fabric is a Component Library that is developed to reflect the latest Microsoft design language. It is used in many Microsoft web applications and is developed in the open:
|
||||
|
||||
https://github.com/officedev/office-ui-fabric-react
|
||||
|
||||
Documentation can be found here:
|
||||
|
||||
https://developer.microsoft.com/en-us/fabric/#/components
|
||||
|
||||
## Learn about Components and How to Look up Documentation
|
||||
|
||||
- Stack
|
||||
- Default Button / Primary Button
|
||||
|
||||
# Exercise
|
||||
|
||||
1. Open up the [Documentation for DefaultButton](https://developer.microsoft.com/en-us/fabric/#/components/button)
|
||||
2. Open up the TSX files inside `components/`
|
||||
3. Replace the DOM tags with Fabric components in those TSX files with these components:
|
||||
|
||||
- Stack
|
||||
- DefaultButton
|
||||
- Checkbox
|
||||
- TextField
|
||||
- Pivot (for the filter)
|
||||
|
||||
# Bonus Exercise
|
||||
|
||||
GO WILD! There are so many components from the Fabric library! Try to put some components in the exercise component files.
|
||||
@@ -1,6 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<head>
|
||||
<link rel="stylesheet" href="../../assets/step.css" />
|
||||
</head>
|
||||
<body class="ms-Fabric">
|
||||
<div id="markdownReadme"></div>
|
||||
<div id="app"></div>
|
||||
<script src="../../step2-02/demo/step2-02/demo.js"></script></body>
|
||||
<script src="../../step2-02/demo/step2-02/demo.js"></script><script src="../../markdownReadme/markdownReadme.js"></script></body>
|
||||
</html>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,6 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<head>
|
||||
<link rel="stylesheet" href="../../assets/step.css" />
|
||||
</head>
|
||||
<body class="ms-Fabric">
|
||||
<div id="markdownReadme"></div>
|
||||
<div id="app"></div>
|
||||
<script src="../../step2-02/exercise/step2-02/exercise.js"></script></body>
|
||||
<script src="../../step2-02/exercise/step2-02/exercise.js"></script><script src="../../markdownReadme/markdownReadme.js"></script></body>
|
||||
</html>
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user