Skip to content

Commit d775393

Browse files
committed
feat: adding primitve scenario
1 parent 2ff3c2e commit d775393

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/components/json-view/JsonView.stories.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const Collapsed = () => {
4747
}
4848

4949
return <Card color={"secondary"} w={"500px"}>
50-
<JsonView value={value} collapsed={1}/>
50+
<JsonView value={value} collapsed={2}/>
5151
</Card>
5252
}
5353

@@ -67,3 +67,13 @@ export const WithDataTypes = () => {
6767
<JsonView value={value} displayDataTypes displayObjectSize/>
6868
</Card>
6969
}
70+
71+
export const Primitive = () => {
72+
73+
const value = "hello"
74+
75+
return <Card color={"secondary"} w={"500px"}>
76+
{/**@ts-ignore**/}
77+
<JsonView value={value} displayDataTypes displayObjectSize/>
78+
</Card>
79+
}

0 commit comments

Comments
 (0)