Skip to content

Commit

Permalink
Tweak stories
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed Feb 10, 2022
1 parent f5c7dbf commit 9440108
Showing 1 changed file with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,20 @@ export default {
const Template = ( props ) => {
const [ value, setValue ] = useState();
return (
<>
<LineHeightControl
onChange={ setValue }
value={ value }
{ ...props }
/>
<hr />
<p>value: { value }</p>
<p>type: { typeof value }</p>
</>
<LineHeightControl onChange={ setValue } value={ value } { ...props } />
);
};

export const Default = Template.bind( {} );
Default.args = {
__nextHasNoMarginBottom: false,
__nextHasNoMarginBottom: true,
__unstableInputWidth: '60px',
};

export const UnconstrainedWidth = Template.bind( {} );
UnconstrainedWidth.args = {
...Default.args,
__unstableInputWidth: '100%',
};

// TODO: Remove before merge
Expand Down

0 comments on commit 9440108

Please sign in to comment.