Skip to content

Commit

Permalink
Update: LetterSpacingControl story configuration and descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Infinite-Null committed Jan 9, 2025
1 parent bbaf0b8 commit 57cf578
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import LetterSpacingControl from '../';

export default {
const meta = {
title: 'BlockEditor/LetterSpacingControl',
component: LetterSpacingControl,
parameters: {
Expand All @@ -18,7 +18,7 @@ export default {
argTypes: {
onChange: {
action: 'onChange',
description: 'Function to be called when the value is changed',
description: 'A callback function invoked when the value is changed.',
table: {
type: {
summary: 'function',
Expand All @@ -34,14 +34,14 @@ export default {
summary: 'number',
},
},
description: 'Letter spacing value in pixels, em, or rem.',
description: 'The current value of the letter spacing setting.',
},
__next40pxDefaultSize: {
control: {
type: 'boolean',
},
description:
'Start opting into the larger default height for future versions.',
'Defines the default size of elements within a block or component.',
table: {
type: {
summary: 'boolean',
Expand All @@ -50,7 +50,7 @@ export default {
},
__unstableInputWidth: {
description:
'Width of the input field for letter-spacing, defaults to 60px.',
'Input width to pass through to inner UnitControl. Should be a valid CSS value.',
control: {
type: null,
},
Expand All @@ -63,6 +63,8 @@ export default {
},
};

export default meta;

/**
* Default story shows the LetterSpacingControl.
*/
Expand Down

0 comments on commit 57cf578

Please sign in to comment.