Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit aa2a089

Browse files
selbekkrakannimer
authored andcommitted
feat(docz): forward of prop to custom Props component (#1193)
1 parent 06311d0 commit aa2a089

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/docz/src/components/Props.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export interface PropsComponentProps {
9797
isToggle?: boolean
9898
props: Record<string, Prop>
9999
getPropType(prop: Prop): string
100+
of: ComponentWithDocGenInfo
100101
}
101102

102103
export const Props: SFC<PropsProps> = ({
@@ -149,6 +150,7 @@ export const Props: SFC<PropsProps> = ({
149150
isToggle={isToggle}
150151
props={props}
151152
getPropType={getPropType}
153+
of={component}
152154
/>
153155
)
154156
}

0 commit comments

Comments
 (0)