Skip to content

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

TypeScript

docs(common-props): add xstyle entries to 6 remaining components (#2044)

Joey17844719f53c
diff --git a/packages/core/src/Chat/ChatToolCalls.doc.mjs b/packages/core/src/Chat/ChatToolCalls.doc.mjs
index 04bac53899..29f5702ef3 100644
--- a/packages/core/src/Chat/ChatToolCalls.doc.mjs
+++ b/packages/core/src/Chat/ChatToolCalls.doc.mjs
@@ -60,6 +60,12 @@ export const docs = {
type: '(isExpanded: boolean) => void',
description: 'Callback fired when the expanded state changes.',
},
+ {
+ name: 'xstyle',
+ type: 'StyleXStyles',
+ description:
+ 'StyleX styles for layout customization (margins, positioning, sizing). Must be a stylex.create() value — not an inline style object like style={{}}.',
+ },
],
};
diff --git a/packages/core/src/ClickableCard/ClickableCard.doc.mjs b/packages/core/src/ClickableCard/ClickableCard.doc.mjs
index 7b343c14ad..7dda7e30da 100644
--- a/packages/core/src/ClickableCard/ClickableCard.doc.mjs
+++ b/packages/core/src/ClickableCard/ClickableCard.doc.mjs
@@ -26,6 +26,7 @@ export const docs = {
{name: 'width', type: 'SizeValue', description: 'Card width.'},
{name: 'height', type: 'SizeValue', description: 'Card height.'},
{name: 'maxWidth', type: 'SizeValue', description: 'Maximum card width.'},
+ {name: 'xstyle', type: 'StyleXStyles', description: 'StyleX styles for layout customization (margins, positioning, sizing). Must be a stylex.create() value — not an inline style object like style={{}}.'},
],
theming: {
container: true,
diff --git a/packages/core/src/NavMenu/NavMenu.doc.mjs b/packages/core/src/NavMenu/NavMenu.doc.mjs
index 333b627be8..faf33cf25c 100644
--- a/packages/core/src/NavMenu/NavMenu.doc.mjs
+++ b/packages/core/src/NavMenu/NavMenu.doc.mjs
@@ -15,5 +15,6 @@ export const docs = {
{name: 'children', type: 'ReactNode', required: true, description: 'Menu items.'},
{name: 'size', type: "'sm' | 'md' | 'lg'", default: "'md'", description: 'Controls min-width and item padding.'},
{name: 'minWidth', type: 'number | string', description: 'Minimum width override.'},
+ {name: 'xstyle', type: 'StyleXStyles', description: 'StyleX styles for layout customization (margins, positioning, sizing). Must be a stylex.create() value — not an inline style object like style={{}}.'},
],
};
diff --git a/packages/core/src/Popover/useXDSPopover.doc.mjs b/packages/core/src/Popover/useXDSPopover.doc.mjs
index 8a6536d023..ffa14117e8 100644
--- a/packages/core/src/Popover/useXDSPopover.doc.mjs
+++ b/packages/core/src/Popover/useXDSPopover.doc.mjs
@@ -43,6 +43,11 @@ export const docs = {
type: '() => void',
description: 'Callback fired when the popover is hidden.',
},
+ {
+ name: 'xstyle',
+ type: 'StyleXStyles',
+ description: 'StyleX styles for the popover surface (margins, sizing). Must be a stylex.create() value — not an inline style object. Note: for styles that interact with :popover-open, pass xstyle via the render() call props instead.',
+ },
],
returns: [
{
diff --git a/packages/core/src/Resizable/Resizable.doc.mjs b/packages/core/src/Resizable/Resizable.doc.mjs
index 7743b12941..3d74e487d4 100644
--- a/packages/core/src/Resizable/Resizable.doc.mjs
+++ b/packages/core/src/Resizable/Resizable.doc.mjs
@@ -171,6 +171,12 @@ export const docs = {
description:
'Custom handle content. Overrides the default pill + divider.',
},
+ {
+ name: 'xstyle',
+ type: 'StyleXStyles',
+ description:
+ 'StyleX styles for layout customization (margins, positioning, sizing). Must be a stylex.create() value — not an inline style object like style={{}}.',
+ },
],
},
],
diff --git a/packages/core/src/SelectableCard/SelectableCard.doc.mjs b/packages/core/src/SelectableCard/SelectableCard.doc.mjs
index 1b56c80686..d7e5fc423b 100644
--- a/packages/core/src/SelectableCard/SelectableCard.doc.mjs
+++ b/packages/core/src/SelectableCard/SelectableCard.doc.mjs
@@ -25,6 +25,7 @@ export const docs = {
{name: 'width', type: 'SizeValue', description: 'Card width.'},
{name: 'height', type: 'SizeValue', description: 'Card height.'},
{name: 'maxWidth', type: 'SizeValue', description: 'Maximum card width.'},
+ {name: 'xstyle', type: 'StyleXStyles', description: 'StyleX styles for layout customization (margins, positioning, sizing). Must be a stylex.create() value — not an inline style object like style={{}}.'},
],
theming: {
container: true,