From 3c26541d74cf9071f798bc443be6e43094ddae1e Mon Sep 17 00:00:00 2001 From: Alaa Badran Date: Tue, 21 Oct 2025 12:03:20 +0300 Subject: [PATCH] Enhance documentation for text alignment utilities Added examples for text alignment utilities in LTR and RTL contexts for `text-start` and `text-end` classes --- src/docs/text-align.mdx | 55 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/src/docs/text-align.mdx b/src/docs/text-align.mdx index eae2a7127..5c0651424 100644 --- a/src/docs/text-align.mdx +++ b/src/docs/text-align.mdx @@ -127,6 +127,61 @@ Use the `text-justify` utility to justify the text of an element: +### Text alignment with Directions (LTR and RTL) + +Use the `text-start` utility to align text to the start of HTML element, regardless or the direction (LTR or RTL): + +
+ + + { +
+
+

+ EN text align start +

+

+ نص عربي في بداية السطر +

+
+
+ } +
+ +```html + +

So I started to walk into the water...

+

هنا يبدأ النص...

+``` + +
+ +and use the `text-end` utility to align text to the end of HTML element, regardless or the direction (LTR or RTL), +
+ + + { +
+
+

+ EN text align end +

+

+ نص عربي في نهاية السطر +

+
+
+ } +
+ +```html + +

So I started to walk into the water...

+

هنا يبدأ النص...

+``` + +
+ ### Responsive design