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
{{ message }}
This repository was archived by the owner on Mar 16, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: src/docs/documentation/references/components-api.mdx
+54-3Lines changed: 54 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,7 @@ import MyComponent from './MyComponent'
114
114
115
115
### Descriptions
116
116
117
-
You can add descriptions for your props by adding a comment on the line above the prop.
117
+
You can add descriptions for your props by adding a comment on the line above the prop.
118
118
119
119
> Note: Description comments must be in the format `/** Description */`.
120
120
@@ -290,10 +290,61 @@ export function useConfig(): Config
290
290
291
291
---
292
292
293
+
## `useComponentProps`
294
+
295
+
Availablesince`v2.3.0`.
296
+
297
+
Getsyouthetypedefinition of a specific component defined by the query.
298
+
Can be useful when you need data from type definition found by docgen, one use case would be if you want to filter all components based on a group of type.
>**Docgen**canonlypickupthetypedefinition of component and function, if you need type definition of a specific interface, you must create a fake component.
0 commit comments