Skip to content

Commit

Permalink
docs(props-table): add data-is-deprecated to deprecated rows
Browse files Browse the repository at this point in the history
  • Loading branch information
aliemir committed Jan 24, 2025
1 parent 7acf534 commit c57640c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion documentation/src/components/props-table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,14 @@ const PropsTable: React.FC<React.PropsWithChildren<Props>> = ({
return null;
}
return (
<tr key={prop.name}>
<tr
key={prop.name}
{...(prop.tags?.deprecated
? {
"data-is-deprecated": "true",
}
: {})}
>
<RowName prop={prop} overrides={overrides} />
<RowType prop={prop} overrides={overrides} />
<RowDescription prop={prop} overrides={overrides} />
Expand Down

0 comments on commit c57640c

Please sign in to comment.