@@ -3,48 +3,64 @@ import React from 'react';
3
3
import './page.css' ;
4
4
5
5
export const Page : React . FC = ( ) => {
6
-
7
6
return (
8
7
< article >
9
-
10
8
< section className = "storybook-page" >
11
9
< h2 > Pages in Storybook</ h2 >
12
10
< p >
13
11
We recommend building UIs with a{ ' ' }
14
- < a href = "https://componentdriven.org" target = "_blank" rel = "noopener noreferrer" >
12
+ < a
13
+ href = "https://componentdriven.org"
14
+ target = "_blank"
15
+ rel = "noopener noreferrer"
16
+ >
15
17
< strong > component-driven</ strong >
16
18
</ a > { ' ' }
17
19
process starting with atomic components and ending with pages.
18
20
</ p >
19
21
< p >
20
- Render pages with mock data. This makes it easy to build and review page states without
21
- needing to navigate to them in your app. Here are some handy patterns for managing page
22
- data in Storybook:
22
+ Render pages with mock data. This makes it easy to build and review
23
+ page states without needing to navigate to them in your app. Here are
24
+ some handy patterns for managing page data in Storybook:
23
25
</ p >
24
26
< ul >
25
27
< li >
26
- Use a higher-level connected component. Storybook helps you compose such data from the
27
- "args" of child component stories
28
+ Use a higher-level connected component. Storybook helps you compose
29
+ such data from the "args" of child component stories
28
30
</ li >
29
31
< li >
30
- Assemble data in the page component from your services. You can mock these services out
31
- using Storybook.
32
+ Assemble data in the page component from your services. You can mock
33
+ these services out using Storybook.
32
34
</ li >
33
35
</ ul >
34
36
< p >
35
37
Get a guided tutorial on component-driven development at{ ' ' }
36
- < a href = "https://storybook.js.org/tutorials/" target = "_blank" rel = "noopener noreferrer" >
38
+ < a
39
+ href = "https://storybook.js.org/tutorials/"
40
+ target = "_blank"
41
+ rel = "noopener noreferrer"
42
+ >
37
43
Storybook tutorials
38
44
</ a >
39
45
. Read more in the{ ' ' }
40
- < a href = "https://storybook.js.org/docs" target = "_blank" rel = "noopener noreferrer" >
46
+ < a
47
+ href = "https://storybook.js.org/docs"
48
+ target = "_blank"
49
+ rel = "noopener noreferrer"
50
+ >
41
51
docs
42
52
</ a >
43
53
.
44
54
</ p >
45
55
< div className = "tip-wrapper" >
46
- < span className = "tip" > Tip</ span > Adjust the width of the canvas with the{ ' ' }
47
- < svg width = "10" height = "10" viewBox = "0 0 12 12" xmlns = "http://www.w3.org/2000/svg" >
56
+ < span className = "tip" > Tip</ span > Adjust the width of the canvas with
57
+ the{ ' ' }
58
+ < svg
59
+ width = "10"
60
+ height = "10"
61
+ viewBox = "0 0 12 12"
62
+ xmlns = "http://www.w3.org/2000/svg"
63
+ >
48
64
< g fill = "none" fillRule = "evenodd" >
49
65
< path
50
66
d = "M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z"
0 commit comments