Skip to content

Commit 155c8e0

Browse files
committed
refactor: Wrap JSON data in a details element in shikiComponent
1 parent 67359b0 commit 155c8e0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/test-case-component/src/components/shikiComponent.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ export const ShikiComponent: React.FC<{ data: any }> = ({ data }) => {
2929
)}
3030
</div>
3131
</div>
32-
<pre>{JSON.stringify(data, null, 2)}</pre>
32+
<details>
33+
<summary>JSON</summary>
34+
<pre className="max-w-xl overflow-auto">
35+
{JSON.stringify(data, null, 2)}
36+
</pre>
37+
</details>
3338
</div>
3439
);
3540
};

0 commit comments

Comments
 (0)