Skip to content

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

TypeScript

docs(core): document TabList's layout prop (#3216)

Durvesh Pilankar5acbe132f2fc
diff --git a/.changeset/tablist-layout-doc.md b/.changeset/tablist-layout-doc.md
new file mode 100644
index 0000000000..23f018209c
--- /dev/null
+++ b/.changeset/tablist-layout-doc.md
@@ -0,0 +1,6 @@
+---
+'@astryxdesign/core': patch
+---
+
+[docs] Document TabList's `layout` prop ('hug' | 'fill') for tab sizing, which was supported by the component but missing from the docsite properties tab
+@durvesh1992
diff --git a/packages/core/src/TabList/TabList.doc.mjs b/packages/core/src/TabList/TabList.doc.mjs
index 84db5bb8f5..fd252fbf24 100644
--- a/packages/core/src/TabList/TabList.doc.mjs
+++ b/packages/core/src/TabList/TabList.doc.mjs
@@ -43,6 +43,12 @@ export const docs = {
description: 'Size variant applied to all child tabs.',
default: "'md'",
},
+ {
+ name: 'layout',
+ type: "'hug' | 'fill'",
+ description: "Layout mode for tab sizing. 'hug': each tab hugs its content width. 'fill': tabs stretch equally to fill the container width.",
+ default: "'hug'",
+ },
{
name: 'hasDivider',
type: 'boolean',