From c9f71267092ae33f487bef1eac4015229ea47e1f Mon Sep 17 00:00:00 2001 From: lukzerom Date: Fri, 17 Dec 2021 09:06:58 +0100 Subject: [PATCH] Card Tab docs update Signed-off-by: lukzerom --- packages/core-components/api-report.md | 2 +- .../src/layout/TabbedCard/TabbedCard.tsx | 24 ++++++++++++------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/packages/core-components/api-report.md b/packages/core-components/api-report.md index f047f38a06..2d7f8d1d5c 100644 --- a/packages/core-components/api-report.md +++ b/packages/core-components/api-report.md @@ -104,7 +104,7 @@ export type BottomLinkProps = { // Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point index.d.ts // -// @public (undocumented) +// @public export function Breadcrumbs(props: Props_20): JSX.Element; // @public (undocumented) diff --git a/packages/core-components/src/layout/TabbedCard/TabbedCard.tsx b/packages/core-components/src/layout/TabbedCard/TabbedCard.tsx index d791629246..1fcda30158 100644 --- a/packages/core-components/src/layout/TabbedCard/TabbedCard.tsx +++ b/packages/core-components/src/layout/TabbedCard/TabbedCard.tsx @@ -14,19 +14,19 @@ * limitations under the License. */ -import React, { - useState, - ReactElement, - ReactNode, - PropsWithChildren, -} from 'react'; -import { withStyles, makeStyles } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import CardContent from '@material-ui/core/CardContent'; import CardHeader from '@material-ui/core/CardHeader'; import Divider from '@material-ui/core/Divider'; -import Tabs from '@material-ui/core/Tabs'; +import { makeStyles, withStyles } from '@material-ui/core/styles'; import Tab, { TabProps } from '@material-ui/core/Tab'; +import Tabs from '@material-ui/core/Tabs'; +import React, { + PropsWithChildren, + ReactElement, + ReactNode, + useState, +} from 'react'; import { BottomLink, BottomLinkProps } from '../BottomLink'; import { ErrorBoundary, ErrorBoundaryProps } from '../ErrorBoundary'; @@ -149,7 +149,13 @@ type CardTabProps = TabProps & { children: ReactNode; }; -/** @public */ +/** + * Card tab component used in {@link TabbedCard | TabbedCard} + * + * @public + * @remarks + * + */ export function CardTab(props: PropsWithChildren) { const { children, ...restProps } = props; const classes = useCardTabStyles();