@sp-days-framework/create-sp-days 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/sp-days-framework-create-sp-days-1.0.3.tgz +0 -0
- package/templates/addon-resources/resources/interactive-tasks/creating-tasks.mdx +136 -174
- package/templates/addon-resources/resources/interactive-tasks/setup/advanced-configuration.mdx +124 -1
- package/templates/addon-resources/resources/interactive-tasks/setup/index.mdx +1 -55
- package/templates/addon-slidev/package.json +4 -4
- package/templates/page-course/docusaurus.config.ts +16 -4
- package/templates/page-course/package.json +2 -2
- package/templates/addon-resources/resources/frontpage-collection/components/Columns.mdx +0 -191
- package/templates/addon-resources/resources/frontpage-collection/components/ContentBlock.mdx +0 -126
- package/templates/addon-resources/resources/frontpage-collection/components/CourseFeature.mdx +0 -147
- package/templates/addon-resources/resources/frontpage-collection/components/FancyHeader.mdx +0 -76
- package/templates/addon-resources/resources/frontpage-collection/components/GetStarted.mdx +0 -222
- package/templates/addon-resources/resources/frontpage-collection/components/HeroBanner.mdx +0 -205
- package/templates/addon-resources/resources/frontpage-collection/components/IconContainer.mdx +0 -249
- package/templates/addon-resources/resources/frontpage-collection/components/Iconify.mdx +0 -228
- package/templates/addon-resources/resources/frontpage-collection/components/_category_.yml +0 -2
- package/templates/addon-resources/resources/frontpage-collection/index.mdx +0 -85
- package/templates/addon-resources/resources/frontpage-collection/setup/index.mdx +0 -185
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import Tabs from "@theme/Tabs";
|
|
2
|
-
import TabItem from "@theme/TabItem";
|
|
3
|
-
import {
|
|
4
|
-
Columns,
|
|
5
|
-
Left,
|
|
6
|
-
Right,
|
|
7
|
-
Block,
|
|
8
|
-
} from "@sp-days-framework/docusaurus-frontpage-collection";
|
|
9
|
-
|
|
10
|
-
# Columns Section
|
|
11
|
-
|
|
12
|
-
Create responsive two-column layouts with customizable ratios.
|
|
13
|
-
|
|
14
|
-
<div className="preview">
|
|
15
|
-
<div className="container" style={{ width: '-webkit-fill-available'}}>
|
|
16
|
-
<Columns leftRatio="60">
|
|
17
|
-
<Left>
|
|
18
|
-
### Main Content
|
|
19
|
-
|
|
20
|
-
This is a live example of the Columns component. The left column takes up 60% of the width, while the right column takes up 40%.
|
|
21
|
-
|
|
22
|
-
The columns will automatically stack on smaller screens for better mobile experience.
|
|
23
|
-
</Left>
|
|
24
|
-
<Right>
|
|
25
|
-
<Block>
|
|
26
|
-
### Quick Stats
|
|
27
|
-
|
|
28
|
-
- **Responsive**: Stacks on mobile
|
|
29
|
-
- **Flexible**: Custom ratios
|
|
30
|
-
- **Equal height**: Automatic
|
|
31
|
-
</Block>
|
|
32
|
-
</Right>
|
|
33
|
-
</Columns>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
|
|
37
|
-
## Features
|
|
38
|
-
|
|
39
|
-
- Flexible column ratios
|
|
40
|
-
- Equal height option
|
|
41
|
-
- Automatic text wrapping
|
|
42
|
-
|
|
43
|
-
## Import
|
|
44
|
-
|
|
45
|
-
<Tabs>
|
|
46
|
-
<TabItem value="individual" label="Individual import" default>
|
|
47
|
-
```mdx
|
|
48
|
-
import {
|
|
49
|
-
Columns,
|
|
50
|
-
Left,
|
|
51
|
-
Right,
|
|
52
|
-
} from "@sp-days-framework/docusaurus-frontpage-collection";
|
|
53
|
-
```
|
|
54
|
-
</TabItem>
|
|
55
|
-
<TabItem value="default" label="Default import">
|
|
56
|
-
```mdx
|
|
57
|
-
import Columns, { Left, Right } from "@sp-days-framework/docusaurus-frontpage-collection/lib/components/Columns";
|
|
58
|
-
```
|
|
59
|
-
</TabItem>
|
|
60
|
-
</Tabs>
|
|
61
|
-
|
|
62
|
-
## Basic Usage
|
|
63
|
-
|
|
64
|
-
```mdx
|
|
65
|
-
<Columns>
|
|
66
|
-
<Left>
|
|
67
|
-
Left column content
|
|
68
|
-
</Left>
|
|
69
|
-
<Right>
|
|
70
|
-
Right column content
|
|
71
|
-
</Right>
|
|
72
|
-
</Columns>
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## Props
|
|
76
|
-
|
|
77
|
-
### Columns
|
|
78
|
-
|
|
79
|
-
| Prop | Type | Default | Description |
|
|
80
|
-
| ------------- | ----------- | --------- | ---------------------------------------- |
|
|
81
|
-
| `leftRatio` | `string` | `'50'` | Width percentage for left column |
|
|
82
|
-
| `equalHeight` | `boolean` | `true` | Whether columns should have equal height |
|
|
83
|
-
| `minWidth` | `string` | `'700px'` | Minimum width before stacking |
|
|
84
|
-
| `noStretch` | `boolean` | `false` | Prevent columns from stretching |
|
|
85
|
-
| `children` | `ReactNode` | required | Left and Right components |
|
|
86
|
-
|
|
87
|
-
### Left / Right
|
|
88
|
-
|
|
89
|
-
| Prop | Type | Description |
|
|
90
|
-
| ---------- | ----------- | ----------------------------- |
|
|
91
|
-
| `children` | `ReactNode` | Column content (supports MDX) |
|
|
92
|
-
|
|
93
|
-
## Examples
|
|
94
|
-
|
|
95
|
-
### 50/50 Split
|
|
96
|
-
|
|
97
|
-
```mdx
|
|
98
|
-
<Columns>
|
|
99
|
-
<Left>
|
|
100
|
-
## Left Side
|
|
101
|
-
|
|
102
|
-
Content for the left column
|
|
103
|
-
</Left>
|
|
104
|
-
<Right>
|
|
105
|
-
## Right Side
|
|
106
|
-
|
|
107
|
-
Content for the right column
|
|
108
|
-
</Right>
|
|
109
|
-
</Columns>
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
### 60/40 Split
|
|
113
|
-
|
|
114
|
-
```mdx
|
|
115
|
-
<Columns leftRatio="60">
|
|
116
|
-
<Left>
|
|
117
|
-
## Main Content (60%)
|
|
118
|
-
|
|
119
|
-
This column takes up 60% of the width
|
|
120
|
-
</Left>
|
|
121
|
-
<Right>
|
|
122
|
-
## Sidebar (40%)
|
|
123
|
-
|
|
124
|
-
This column takes up 40% of the width
|
|
125
|
-
</Right>
|
|
126
|
-
</Columns>
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### 70/30 Split
|
|
130
|
-
|
|
131
|
-
```mdx
|
|
132
|
-
<Columns leftRatio="70">
|
|
133
|
-
<Left>
|
|
134
|
-
## Primary Content
|
|
135
|
-
|
|
136
|
-
Larger column for main content
|
|
137
|
-
</Left>
|
|
138
|
-
<Right>
|
|
139
|
-
### Quick Stats
|
|
140
|
-
|
|
141
|
-
- Duration: 4 weeks
|
|
142
|
-
- Effort: 10 hrs/week
|
|
143
|
-
</Right>
|
|
144
|
-
</Columns>
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
### With Block Component
|
|
148
|
-
|
|
149
|
-
```mdx
|
|
150
|
-
import {
|
|
151
|
-
Columns,
|
|
152
|
-
Left,
|
|
153
|
-
Right,
|
|
154
|
-
Block,
|
|
155
|
-
} from "@sp-days-framework/docusaurus-frontpage-collection";
|
|
156
|
-
|
|
157
|
-
<Columns leftRatio="65">
|
|
158
|
-
<Left>
|
|
159
|
-
## Course Overview
|
|
160
|
-
|
|
161
|
-
Detailed description of the course...
|
|
162
|
-
</Left>
|
|
163
|
-
<Right>
|
|
164
|
-
<Block>
|
|
165
|
-
### Info
|
|
166
|
-
|
|
167
|
-
- **Level**: Intermediate
|
|
168
|
-
- **Duration**: 6 weeks
|
|
169
|
-
- **Certificate**: Yes
|
|
170
|
-
</Block>
|
|
171
|
-
</Right>
|
|
172
|
-
</Columns>
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
## Responsive Behavior
|
|
176
|
-
|
|
177
|
-
The columns automatically stack vertically when the container is too narrow:
|
|
178
|
-
|
|
179
|
-
- **> 900px**: Full two-column layout
|
|
180
|
-
- **750px - 900px**: Reduced gap between columns
|
|
181
|
-
- **600px - 750px**: Further adjusted spacing
|
|
182
|
-
- **< 600px**: Stacks vertically
|
|
183
|
-
|
|
184
|
-
## Content Wrapping
|
|
185
|
-
|
|
186
|
-
Text and content automatically wrap within columns:
|
|
187
|
-
|
|
188
|
-
- Long words break appropriately
|
|
189
|
-
- Tables become scrollable
|
|
190
|
-
- Images scale to fit
|
|
191
|
-
- Code blocks wrap or scroll
|
package/templates/addon-resources/resources/frontpage-collection/components/ContentBlock.mdx
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import Tabs from "@theme/Tabs";
|
|
2
|
-
import TabItem from "@theme/TabItem";
|
|
3
|
-
import { Block } from "@sp-days-framework/docusaurus-frontpage-collection";
|
|
4
|
-
|
|
5
|
-
# Content Block
|
|
6
|
-
|
|
7
|
-
A simple styled block container for highlighting content.
|
|
8
|
-
|
|
9
|
-
<div className="preview">
|
|
10
|
-
<div className="container">
|
|
11
|
-
<Block>
|
|
12
|
-
### Example Block
|
|
13
|
-
|
|
14
|
-
This is a live example of the Block component with hover effect.
|
|
15
|
-
|
|
16
|
-
- **Feature 1**: Styled container
|
|
17
|
-
- **Feature 2**: Hover animation
|
|
18
|
-
- **Feature 3**: Perfect for side content
|
|
19
|
-
</Block>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
## Features
|
|
24
|
-
|
|
25
|
-
- Hover effect
|
|
26
|
-
- Works great in columns or standalone
|
|
27
|
-
|
|
28
|
-
## Import
|
|
29
|
-
|
|
30
|
-
<Tabs>
|
|
31
|
-
<TabItem value="individual" label="Individual import" default>
|
|
32
|
-
```mdx
|
|
33
|
-
import { Block } from "@sp-days-framework/docusaurus-frontpage-collection";
|
|
34
|
-
```
|
|
35
|
-
</TabItem>
|
|
36
|
-
<TabItem value="default" label="Default import">
|
|
37
|
-
```mdx
|
|
38
|
-
import Block from "@sp-days-framework/docusaurus-frontpage-collection/lib/components/Block";
|
|
39
|
-
```
|
|
40
|
-
</TabItem>
|
|
41
|
-
</Tabs>
|
|
42
|
-
|
|
43
|
-
## Basic Usage
|
|
44
|
-
|
|
45
|
-
```mdx
|
|
46
|
-
<Block>
|
|
47
|
-
## Quick Info
|
|
48
|
-
|
|
49
|
-
- **Duration**: 4 weeks
|
|
50
|
-
- **Effort**: 10 hours/week
|
|
51
|
-
- **Level**: Intermediate
|
|
52
|
-
</Block>
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## Props
|
|
56
|
-
|
|
57
|
-
| Prop | Type | Description |
|
|
58
|
-
| ----------- | ----------- | ---------------------- |
|
|
59
|
-
| `className` | `string` | Additional CSS classes |
|
|
60
|
-
| `children` | `ReactNode` | Markdown content |
|
|
61
|
-
|
|
62
|
-
## Examples
|
|
63
|
-
|
|
64
|
-
### Simple Block
|
|
65
|
-
|
|
66
|
-
```mdx
|
|
67
|
-
<Block>
|
|
68
|
-
### Important Note
|
|
69
|
-
|
|
70
|
-
Remember to complete all iconContainers before starting.
|
|
71
|
-
</Block>
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
### With Custom Class
|
|
75
|
-
|
|
76
|
-
```mdx
|
|
77
|
-
<Block className="my-custom-class">Custom styled content</Block>
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
### In Columns
|
|
81
|
-
|
|
82
|
-
```mdx
|
|
83
|
-
import {
|
|
84
|
-
Columns,
|
|
85
|
-
Left,
|
|
86
|
-
Right,
|
|
87
|
-
Block,
|
|
88
|
-
} from "@sp-days-framework/docusaurus-frontpage-collection";
|
|
89
|
-
|
|
90
|
-
<Columns leftRatio="65">
|
|
91
|
-
<Left>
|
|
92
|
-
Main content goes here...
|
|
93
|
-
</Left>
|
|
94
|
-
<Right>
|
|
95
|
-
<Block>
|
|
96
|
-
### Course Stats
|
|
97
|
-
|
|
98
|
-
- 1,000+ students
|
|
99
|
-
- 4.8/5 rating
|
|
100
|
-
- Updated monthly
|
|
101
|
-
</Block>
|
|
102
|
-
</Right>
|
|
103
|
-
</Columns>
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
### Multiple Blocks
|
|
107
|
-
|
|
108
|
-
```mdx
|
|
109
|
-
<Block>
|
|
110
|
-
### Module 1
|
|
111
|
-
|
|
112
|
-
Introduction to Docker
|
|
113
|
-
</Block>
|
|
114
|
-
|
|
115
|
-
<Block>
|
|
116
|
-
### Module 2
|
|
117
|
-
|
|
118
|
-
Container Management
|
|
119
|
-
</Block>
|
|
120
|
-
|
|
121
|
-
<Block>
|
|
122
|
-
### Module 3
|
|
123
|
-
|
|
124
|
-
Image Building
|
|
125
|
-
</Block>
|
|
126
|
-
```
|
package/templates/addon-resources/resources/frontpage-collection/components/CourseFeature.mdx
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import Tabs from "@theme/Tabs";
|
|
2
|
-
import TabItem from "@theme/TabItem";
|
|
3
|
-
import {
|
|
4
|
-
CourseFeature,
|
|
5
|
-
Included,
|
|
6
|
-
NotIncluded,
|
|
7
|
-
} from "@sp-days-framework/docusaurus-frontpage-collection";
|
|
8
|
-
|
|
9
|
-
# Course Feature Section
|
|
10
|
-
|
|
11
|
-
A card-based component for displaying what's included and not included in your course.
|
|
12
|
-
|
|
13
|
-
<div className="preview">
|
|
14
|
-
<div className="container" style={{ width: '-webkit-fill-available'}}>
|
|
15
|
-
<CourseFeature>
|
|
16
|
-
<Included>
|
|
17
|
-
- **Core Concepts**: Learn the fundamentals
|
|
18
|
-
- **Hands-on Labs**: Practice with real examples
|
|
19
|
-
- **Certificate**: Earn a completion certificate
|
|
20
|
-
</Included>
|
|
21
|
-
<NotIncluded>
|
|
22
|
-
- **Advanced Topics**: Covered in advanced course
|
|
23
|
-
- **1-on-1 Mentoring**: Available as add-on
|
|
24
|
-
</NotIncluded>
|
|
25
|
-
</CourseFeature>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
## Features
|
|
30
|
-
|
|
31
|
-
- Side-by-side included/not included cards
|
|
32
|
-
- Built-in success/danger colored icons
|
|
33
|
-
- Hover animations on cards and icons
|
|
34
|
-
- Support for custom icons
|
|
35
|
-
- Responsive layout
|
|
36
|
-
- Equal height cards
|
|
37
|
-
|
|
38
|
-
## Import
|
|
39
|
-
|
|
40
|
-
<Tabs>
|
|
41
|
-
<TabItem value="individual" label="Individual import" default>
|
|
42
|
-
```mdx
|
|
43
|
-
import {
|
|
44
|
-
CourseFeature,
|
|
45
|
-
Included,
|
|
46
|
-
NotIncluded,
|
|
47
|
-
} from "@sp-days-framework/docusaurus-frontpage-collection";
|
|
48
|
-
```
|
|
49
|
-
</TabItem>
|
|
50
|
-
<TabItem value="default" label="Default import">
|
|
51
|
-
```mdx
|
|
52
|
-
import CourseFeature, { Included, NotIncluded } from "@sp-days-framework/docusaurus-frontpage-collection/lib/components/CourseFeature";
|
|
53
|
-
```
|
|
54
|
-
</TabItem>
|
|
55
|
-
</Tabs>
|
|
56
|
-
|
|
57
|
-
## Basic Usage
|
|
58
|
-
|
|
59
|
-
```mdx
|
|
60
|
-
<CourseFeature>
|
|
61
|
-
<Included>
|
|
62
|
-
- **Docker Fundamentals**: Core concepts and architecture
|
|
63
|
-
- **Container Management**: Creating and managing containers
|
|
64
|
-
- **Image Building**: Building custom images
|
|
65
|
-
</Included>
|
|
66
|
-
<NotIncluded>
|
|
67
|
-
- **Kubernetes**: Covered in advanced course
|
|
68
|
-
- **CI/CD Pipelines**: Separate course available
|
|
69
|
-
</NotIncluded>
|
|
70
|
-
</CourseFeature>
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
## Props
|
|
74
|
-
|
|
75
|
-
### CourseFeature
|
|
76
|
-
|
|
77
|
-
| Prop | Type | Default | Description |
|
|
78
|
-
| -------------------------- | ---------------------- | ---------- | ------------------------------------------------- |
|
|
79
|
-
| `children` | `ReactNode` | required | Included/NotIncluded components or direct content |
|
|
80
|
-
| `iconifyIncluded` | `IconifyConfig\|string`| Check icon | Iconify icon for included section |
|
|
81
|
-
| `customSvgIncluded` | `CustomSvgConfig` | - | Custom SVG file for included section (supports color override) |
|
|
82
|
-
| `customImageIncluded` | `CustomImageConfig` | - | Custom image file (PNG/JPEG) for included section |
|
|
83
|
-
| `iconifyNotIncluded` | `IconifyConfig\|string`| Cross icon | Iconify icon for not included section |
|
|
84
|
-
| `customSvgNotIncluded` | `CustomSvgConfig` | - | Custom SVG file for not included section (supports color override) |
|
|
85
|
-
| `customImageNotIncluded` | `CustomImageConfig` | - | Custom image file (PNG/JPEG) for not included section |
|
|
86
|
-
| `included` | `boolean` | `true` | Legacy prop for single card mode |
|
|
87
|
-
|
|
88
|
-
### Included / NotIncluded
|
|
89
|
-
|
|
90
|
-
| Prop | Type | Description |
|
|
91
|
-
| ---------- | ----------- | ---------------- |
|
|
92
|
-
| `children` | `ReactNode` | Markdown content |
|
|
93
|
-
|
|
94
|
-
## Examples
|
|
95
|
-
|
|
96
|
-
### Standard Usage
|
|
97
|
-
|
|
98
|
-
```mdx
|
|
99
|
-
<CourseFeature>
|
|
100
|
-
<Included>
|
|
101
|
-
- **Core Concepts**: Fundamentals
|
|
102
|
-
- **Hands-on Labs**: Practical exercises
|
|
103
|
-
- **Real Examples**: Production code
|
|
104
|
-
</Included>
|
|
105
|
-
<NotIncluded>
|
|
106
|
-
- **Advanced Topics**: In advanced course
|
|
107
|
-
- **Certification**: Available separately
|
|
108
|
-
</NotIncluded>
|
|
109
|
-
</CourseFeature>
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
### With Custom Icons
|
|
113
|
-
|
|
114
|
-
```mdx
|
|
115
|
-
<CourseFeature
|
|
116
|
-
iconifyIncluded="mdi:check-circle"
|
|
117
|
-
iconifyNotIncluded="mdi:close-circle"
|
|
118
|
-
>
|
|
119
|
-
<Included>
|
|
120
|
-
Content...
|
|
121
|
-
</Included>
|
|
122
|
-
<NotIncluded>
|
|
123
|
-
Not included...
|
|
124
|
-
</NotIncluded>
|
|
125
|
-
</CourseFeature>
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
### Only Included
|
|
129
|
-
|
|
130
|
-
```mdx
|
|
131
|
-
<CourseFeature>
|
|
132
|
-
<Included>
|
|
133
|
-
- Everything you need
|
|
134
|
-
- Lifetime access
|
|
135
|
-
- Free updates
|
|
136
|
-
</Included>
|
|
137
|
-
</CourseFeature>
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
## Default Icons
|
|
141
|
-
|
|
142
|
-
The component uses inline SVG icons with CSS variable colors:
|
|
143
|
-
|
|
144
|
-
- **Included**: Green check circle (`var(--ifm-color-success)`)
|
|
145
|
-
- **Not Included**: Red cross circle (`var(--ifm-color-danger)`)
|
|
146
|
-
|
|
147
|
-
These automatically adapt to your Docusaurus theme colors.
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import Tabs from "@theme/Tabs";
|
|
2
|
-
import TabItem from "@theme/TabItem";
|
|
3
|
-
import { FancyHeader } from "@sp-days-framework/docusaurus-frontpage-collection";
|
|
4
|
-
|
|
5
|
-
# Fancy Header
|
|
6
|
-
|
|
7
|
-
A header component with a decorative underline accent.
|
|
8
|
-
|
|
9
|
-
<div className="preview">
|
|
10
|
-
<div className="container">
|
|
11
|
-
<FancyHeader as="h3">This is a Live Example</FancyHeader>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
|
-
## Features
|
|
16
|
-
|
|
17
|
-
- Decorative underline accent
|
|
18
|
-
- Customizable heading level
|
|
19
|
-
- Primary color accent
|
|
20
|
-
- Automatic spacing
|
|
21
|
-
- Scroll margin for anchor links
|
|
22
|
-
|
|
23
|
-
## Import
|
|
24
|
-
|
|
25
|
-
<Tabs>
|
|
26
|
-
<TabItem value="individual" label="Individual import" default>
|
|
27
|
-
```mdx
|
|
28
|
-
import { FancyHeader } from "@sp-days-framework/docusaurus-frontpage-collection";
|
|
29
|
-
```
|
|
30
|
-
</TabItem>
|
|
31
|
-
<TabItem value="default" label="Default import">
|
|
32
|
-
```mdx
|
|
33
|
-
import FancyHeader from "@sp-days-framework/docusaurus-frontpage-collection/lib/components/FancyHeader";
|
|
34
|
-
```
|
|
35
|
-
</TabItem>
|
|
36
|
-
</Tabs>
|
|
37
|
-
|
|
38
|
-
## Basic Usage
|
|
39
|
-
|
|
40
|
-
```mdx
|
|
41
|
-
<FancyHeader>Section Title</FancyHeader>
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
## Props
|
|
45
|
-
|
|
46
|
-
| Prop | Type | Default | Description |
|
|
47
|
-
| ----------- | ---------------------------------------------- | -------- | ---------------------- |
|
|
48
|
-
| `as` | `'h1' \| 'h2' \| 'h3' \| 'h4' \| 'h5' \| 'h6'` | `'h2'` | Heading level |
|
|
49
|
-
| `className` | `string` | - | Additional CSS classes |
|
|
50
|
-
| `children` | `ReactNode` | required | Header text |
|
|
51
|
-
|
|
52
|
-
## Examples
|
|
53
|
-
|
|
54
|
-
### Default (h2)
|
|
55
|
-
|
|
56
|
-
```mdx
|
|
57
|
-
<FancyHeader>What You'll Learn</FancyHeader>
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
### Different Heading Levels
|
|
61
|
-
|
|
62
|
-
```mdx
|
|
63
|
-
<FancyHeader as="h1">Main Title</FancyHeader>
|
|
64
|
-
|
|
65
|
-
<FancyHeader as="h2">Section Title</FancyHeader>
|
|
66
|
-
|
|
67
|
-
<FancyHeader as="h3">Subsection Title</FancyHeader>
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
### With Custom Class
|
|
71
|
-
|
|
72
|
-
```mdx
|
|
73
|
-
<FancyHeader as="h2" className="my-custom-class">
|
|
74
|
-
Custom Styled Header
|
|
75
|
-
</FancyHeader>
|
|
76
|
-
```
|