You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Supports all [Field properties](/docs/field-properties--docs)
46
53
47
54
### Styling Properties
48
55
@@ -159,11 +166,11 @@ This component supports all [Field properties](/field-properties.md) when used w
159
166
160
167
### Properties
161
168
162
-
- **Props List**: Use `<Controls of={componentStories.Default} />` - DO NOT manually list props if Controls is used
163
-
- **Base Properties**: Link to `/base-properties.md` instead of listing (unless `qa` has special behavior)
169
+
- **Props List**: List all component-specific properties using the definition list format. Properties, types, defaults, and descriptions must match the `argTypes` defined in the corresponding `.stories.tsx` file. Format: `- **\`propName\`** \`type\` (default: \`value\`) — Description`
170
+
- **Base Properties**: Link to `/docs/base-properties--docs` instead of listing (unless `qa` has special behavior)
164
171
- **Styling Properties**: Document `styles`/`*Styles` props. List sub-elements that can be overridden (check component's tasty styles)
165
172
- **Style Properties**: List direct styling props (`width`, `height`, etc.) - see `src/tasty/styles/list.ts`
166
-
- **React Aria Properties**: Only document if adding clarifications beyond what Controls shows
173
+
- **React Aria Properties**: Document any React Aria properties that need extra clarification
167
174
168
175
### Examples
169
176
@@ -185,9 +192,13 @@ This component supports all [Field properties](/field-properties.md) when used w
185
192
- Relevant ARIA properties
186
193
- Accessible implementation guidance
187
194
195
+
### Field Properties
196
+
197
+
For input components: Add `Supports all [Field properties](/docs/field-properties--docs)` in the Properties section, right after Base Properties. Do NOT duplicate field-level props (`label`, `name`, `isRequired`, `isDisabled`, `isReadOnly`, `isLoading`, `validationState`, `autoFocus`, `tooltip`, `description`, `rules`, etc.) — they are documented on the Field Properties page.
198
+
188
199
### Form Integration
189
200
190
-
For input components: "This component supports all [Field properties](/field-properties.md) when used within a Form."
201
+
For input components: "This component supports all [Field properties](/docs/field-properties--docs) when used within a Form."
191
202
192
203
### File Naming
193
204
@@ -196,7 +207,7 @@ For input components: "This component supports all [Field properties](/field-pro
196
207
## Review Checklist
197
208
198
209
- [ ] **JSX code snippets provided (not just stories)**
199
-
- [ ] **No manual props list if using `<Controls />`**
0 commit comments