Skip to content

Commit cc36fd3

Browse files
authored
Merge pull request #3688 from Shopify/cappslock/chore/2026-01-rc/remove-accessory-slot-references-in-textarea
Update TextArea docs to remove references to accessory
2 parents d8e1489 + fa9bebf commit cc36fd3

File tree

2 files changed

+1
-32
lines changed

2 files changed

+1
-32
lines changed

packages/ui-extensions/src/surfaces/point-of-sale/components/TextArea/TextArea.doc.ts

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -47,35 +47,13 @@ const data: ReferenceEntityTemplateSchema = {
4747
- **Set appropriate row count:** Use 2-3 \`rows\` for brief notes, 4-6 for descriptions, and more for extensive content.
4848
- **Show character limit feedback:** When approaching \`maxLength\`, display remaining characters in the \`details\` text.
4949
- **Write descriptive labels:** Use specific labels like "Product Description" or "Special Instructions" rather than generic terms.
50-
`,
51-
},
52-
{
53-
type: 'Generic',
54-
anchorLink: 'limitations',
55-
title: 'Limitations',
56-
sectionContent: `
57-
The \`accessory\` slot supports only [\`Button\`](/docs/api/pos-ui-extensions/2026-01-rc/polaris-web-components/actions/button) and [\`Clickable\`](/docs/api/pos-ui-extensions/2026-01-rc/polaris-web-components/actions/clickable) components. Other component types can't be used for field accessories.
5850
`,
5951
},
6052
],
6153
related: [],
6254
examples: {
63-
description:
64-
'Learn how to add accessory buttons, configure visible rows, and handle events.',
55+
description: 'Learn how to configure visible rows and handle events.',
6556
examples: [
66-
{
67-
description:
68-
'Add action buttons to the text area using the accessory slot for quick actions like clearing text or formatting content. This example shows how to use [`s-button`](/docs/api/pos-ui-extensions/2026-01-rc/polaris-web-components/actions/button) and [`s-clickable`](/docs/api/pos-ui-extensions/2026-01-rc/polaris-web-components/actions/clickable) components in the accessory slot, providing inline functionality within the multi-line input context.',
69-
codeblock: {
70-
title: 'Add accessory buttons',
71-
tabs: [
72-
{
73-
code: './examples/accessory-slot.jsx',
74-
language: 'jsx',
75-
},
76-
],
77-
},
78-
},
7957
{
8058
description:
8159
'Configure the number of visible rows and character limits to control text area size and input length. This example shows how to use the `rows` property to set initial height and `maxlength` to limit content, ensuring appropriate sizing for different types of text input.',

packages/ui-extensions/src/surfaces/point-of-sale/components/TextArea/examples/accessory-slot.jsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)