Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

docs(core): document Text's justify prop (#3203)

Durvesh Pilankarf6cbc748edc7
diff --git a/.changeset/text-justify-prop-doc.md b/.changeset/text-justify-prop-doc.md
new file mode 100644
index 0000000000..2fb48e295e
--- /dev/null
+++ b/.changeset/text-justify-prop-doc.md
@@ -0,0 +1,6 @@
+---
+'@astryxdesign/core': patch
+---
+
+[docs] Document Text's `justify` prop, which was supported by the component but missing from the docsite properties tab (same omission previously fixed for Heading) (#2847-adjacent)
+@durvesh1992
diff --git a/packages/core/src/Text/Text.doc.mjs b/packages/core/src/Text/Text.doc.mjs
index 57b1961bcf..61149bb4e3 100644
--- a/packages/core/src/Text/Text.doc.mjs
+++ b/packages/core/src/Text/Text.doc.mjs
@@ -82,6 +82,12 @@ export const docs = {
type: "'wrap' | 'nowrap' | 'balance' | 'pretty'",
description: 'Text wrapping behavior.',
},
+ {
+ name: 'justify',
+ type: "'start' | 'center' | 'end'",
+ description: 'Text alignment (justification). Uses logical values (start/end) for i18n/RTL compatibility.',
+ default: "'start'",
+ },
{
name: 'hasCapsize',
type: 'boolean',