From 726e5a97a5800a285f45d3b88faa7dbe12c7721b Mon Sep 17 00:00:00 2001 From: im3dabasia Date: Tue, 24 Dec 2024 21:30:13 +0530 Subject: [PATCH] doc: Corrected headings and removed justify --- .../components/text-alignment-control/README.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/block-editor/src/components/text-alignment-control/README.md b/packages/block-editor/src/components/text-alignment-control/README.md index 1d7353598b866..fe9b9bff5baaf 100644 --- a/packages/block-editor/src/components/text-alignment-control/README.md +++ b/packages/block-editor/src/components/text-alignment-control/README.md @@ -1,12 +1,10 @@ # TextAlignmentControl -The `TextAlignmentControl` component is responsible for rendering a control element that allows users to select and apply text alignment options to blocks or elements in the Gutenberg editor. It provides an intuitive interface for aligning text with options such as `left`, `center`, `right`, and `justify`. +The `TextAlignmentControl` component is responsible for rendering a control element that allows users to select and apply text alignment options to blocks or elements in the Gutenberg editor. It provides an intuitive interface for aligning text with options such as `left`, `center` and `right`. -## Development guidelines +## Usage -### Usage - -Renders the Text Alignment Component with `left`, `center`, `right`, and `justify` alignment options. +Renders the Text Alignment Component with `left`, `center` and `right` alignment options. ```jsx import { TextAlignmentControl } from '@wordpress/block-editor'; @@ -21,13 +19,13 @@ const MyTextAlignmentControlComponent = () => ( ); ``` -### Props +## Props ### `value` - **Type:** `String` - **Default:** `left` -- **Options:** `left`, `center`, `right`, `justify` +- **Options:** `left`, `center`, `right` The current value of the text alignment setting. You may only choose from the `Options` listed above. @@ -35,7 +33,7 @@ The current value of the text alignment setting. You may only choose from the `O - **Type:** `Function` -A callback function invoked when the text alignment value is changed via an interaction with any of the options. The function is called with the new alignment value (`left`, `center`, `right`, `justify`) as the only argument. +A callback function invoked when the text alignment value is changed via an interaction with any of the options. The function is called with the new alignment value (`left`, `center`, `right`) as the only argument. ### `className`