Skip to content

Commit 5940449

Browse files
rushabhcodesrushabhcodes
andauthored
fix: wrap CircuitPreview components in board tags for proper rendering (#308)
Co-authored-by: rushabhcodes <mail@rushabh.dev>
1 parent 7363f75 commit 5940449

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

docs/building-electronics/what-are-electronics-made-of.mdx

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,17 @@ pins are called "surface-mount" chips.
8686
<CircuitPreview defaultView="pcb" code={`
8787
8888
export default () => (
89-
<footprint>
90-
<platedhole
91-
shape="circle"
92-
x="5mm"
93-
y="2.4mm"
94-
holeDiameter="0.25mm"
95-
outerDiameter="0.35mm"
96-
/>
97-
</footprint>
89+
<board width="2mm" height="2mm">
90+
<footprint>
91+
<platedhole
92+
shape="circle"
93+
x="5mm"
94+
y="2.4mm"
95+
holeDiameter="0.25mm"
96+
outerDiameter="0.35mm"
97+
/>
98+
</footprint>
99+
</board>
98100
)
99101
100102
`} />
@@ -108,9 +110,11 @@ can be very helpful for mounting the printed circuit board.
108110
<CircuitPreview defaultView="pcb" code={`
109111
110112
export default () => (
111-
<footprint>
112-
<hole diameter="1mm" />
113-
</footprint>
113+
<board width="2mm" height="2mm">
114+
<footprint>
115+
<hole diameter="1mm" />
116+
</footprint>
117+
</board>
114118
)
115119
116120
`} />

0 commit comments

Comments
 (0)