Skip to content
Draft
Prev Previous commit
Next Next commit
fix document properties
  • Loading branch information
mcasimir committed May 14, 2025
commit 79e8107f04dd0bedc4759a03e420060359ef3116
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,30 @@ import { Document as HadronDocument } from 'hadron-document';
title="Components/Data/Document"
component={Document}
parameters={{ layout: 'centered' }}
argTypes={{
value: {
description: 'The HadronDocument instance to display',
control: false,
},
editable: {
description: 'Whether the document fields can be edited',
control: 'boolean',
defaultValue: false,
},
editing: {
description: 'Whether the document is currently in editing mode',
control: 'boolean',
defaultValue: false,
},
onEditStart: {
description: 'Callback function called when editing starts',
control: false,
},
extraGutterWidth: {
description: 'Additional width for the gutter area',
control: 'number',
},
}}
/>

# Document
Expand Down
Loading