Skip to content

Commit

Permalink
Improve props table for deprecated props
Browse files Browse the repository at this point in the history
- make it visually clearer which props are deprecated
  • Loading branch information
cee-chen committed Oct 24, 2023
1 parent e833945 commit 6c62d89
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src-docs/src/services/playground/knobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,13 @@ const KnobColumn = ({ state, knobNames, error, set, isPlayground }) => {
{humanizedName} <EuiTextColor color="danger">(required)</EuiTextColor>
</>
);
} else if (state[name].description?.includes('@deprecated')) {
humanizedName = (
<>
<s>{humanizedName}</s>{' '}
<EuiTextColor color="subdued">(deprecated)</EuiTextColor>
</>
);
}

/**
Expand Down

0 comments on commit 6c62d89

Please sign in to comment.