Skip to content

Commit 79e8107

Browse files
committed
fix document properties
1 parent 32a5234 commit 79e8107

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

packages/compass-components/src/components/document-list/document.stories.mdx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,30 @@ import { Document as HadronDocument } from 'hadron-document';
66
title="Components/Data/Document"
77
component={Document}
88
parameters={{ layout: 'centered' }}
9+
argTypes={{
10+
value: {
11+
description: 'The HadronDocument instance to display',
12+
control: false,
13+
},
14+
editable: {
15+
description: 'Whether the document fields can be edited',
16+
control: 'boolean',
17+
defaultValue: false,
18+
},
19+
editing: {
20+
description: 'Whether the document is currently in editing mode',
21+
control: 'boolean',
22+
defaultValue: false,
23+
},
24+
onEditStart: {
25+
description: 'Callback function called when editing starts',
26+
control: false,
27+
},
28+
extraGutterWidth: {
29+
description: 'Additional width for the gutter area',
30+
control: 'number',
31+
},
32+
}}
933
/>
1034

1135
# Document

0 commit comments

Comments
 (0)