File tree Expand file tree Collapse file tree
examples/mdx-bundler/posts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Spotlight
2+
3+ This is how to use the ` <CH.Spotlight> ` component. Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quia! Quidem, quisquam.
4+
5+ <CH.Spotlight >
6+
7+ ``` js app.js
8+ function lorem (ipsum , dolor = 1 ) {
9+ const sit = ipsum == null && 0
10+ dolor = sit - amet (dolor)
11+ return sit ? consectetur (ipsum) : []
12+ }
13+ ```
14+
15+ ---
16+
17+ Change focus
18+
19+ ``` js app.js focus=2:4
20+
21+ ```
22+
23+ ---
24+
25+ Or change the code
26+
27+ ``` js app.js focus=6:10
28+ function lorem (ipsum , dolor = 1 ) {
29+ const sit = ipsum == null && 0
30+ dolor = sit - amet (dolor)
31+ return sit ? consectetur (ipsum) : []
32+ }
33+
34+ function adipiscing (... elit ) {
35+ console .log (elit)
36+ return elit .map ((ipsum ) => ipsum .sit )
37+ }
38+ ```
39+
40+ ---
41+
42+ Or change the file
43+
44+ <CH.Code >
45+
46+ ``` js app.js focus=1:4
47+ function adipiscing (... elit ) {
48+ console .log (elit)
49+ return elit .map ((ipsum ) => ipsum .sit )
50+ }
51+ ```
52+
53+ ---
54+
55+ ``` css styles.css
56+ .lorem {
57+ color : #fff ;
58+ padding : 10px ;
59+ background : #000 ;
60+ }
61+ ```
62+
63+ </CH.Code >
64+
65+ ---
66+
67+ ### By the way
68+
69+ - you can
70+ - put any
71+ - markdown
72+ - here
73+
74+ 👍
75+
76+ ``` js app.js
77+
78+ ```
79+
80+ </CH.Spotlight >
You can’t perform that action at this time.
0 commit comments