Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed Feb 10, 2022
1 parent ec0b9ad commit f5c7dbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const MyLineHeightControl = () => (
<LineHeightControl
value={ lineHeight }
onChange={ onChange }
__unstableHasLegacyStyles={ false }
__nextHasNoMarginBottom={ true }
/>
);
```
Expand All @@ -42,11 +42,12 @@ The value of the line height.

A callback function that handles the application of the line height value.

#### `__unstableHasLegacyStyles`
#### `__nextHasNoMarginBottom`

- **Type:** `boolean`
- **Default:** `false`

Whether to use the legacy styling, which is deprecated and will be removed in a future version. Set this to `false` to opt into the new styling, which will soon become the default.
Start opting into the new margin-free styles that will become the default in a future version.

## Related components

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export function LegacyLineHeightControl( { value: lineHeight, onChange } ) {
export default function LineHeightControl( {
value: lineHeight,
onChange,
/** Start opting into the new margin-free styles that will become the default in a future version. */
__nextHasNoMarginBottom = false,
__unstableInputWidth = '60px',
} ) {
Expand Down

0 comments on commit f5c7dbf

Please sign in to comment.