diff --git a/.changeset/curly-memes-roll.md b/.changeset/curly-memes-roll.md new file mode 100644 index 0000000000..bb131f46ac --- /dev/null +++ b/.changeset/curly-memes-roll.md @@ -0,0 +1,5 @@ +--- +'@backstage/ui': patch +--- + +Export CardHeader, CardBody and CardFooter from Card component index diff --git a/packages/ui/report.api.md b/packages/ui/report.api.md index a69794fe0c..c099a31e05 100644 --- a/packages/ui/report.api.md +++ b/packages/ui/report.api.md @@ -207,18 +207,33 @@ export const Card: ForwardRefExoticComponent< CardProps & RefAttributes >; +// @public +export const CardBody: ForwardRefExoticComponent< + CardBodyProps & RefAttributes +>; + // @public export interface CardBodyProps extends React.HTMLAttributes { // (undocumented) children?: React.ReactNode; } +// @public +export const CardFooter: ForwardRefExoticComponent< + CardFooterProps & RefAttributes +>; + // @public export interface CardFooterProps extends React.HTMLAttributes { // (undocumented) children?: React.ReactNode; } +// @public +export const CardHeader: ForwardRefExoticComponent< + CardHeaderProps & RefAttributes +>; + // @public export interface CardHeaderProps extends React.HTMLAttributes { // (undocumented) diff --git a/packages/ui/src/components/Card/index.ts b/packages/ui/src/components/Card/index.ts index 27bab991a4..4b710ee7f1 100644 --- a/packages/ui/src/components/Card/index.ts +++ b/packages/ui/src/components/Card/index.ts @@ -14,7 +14,8 @@ * limitations under the License. */ -export { Card } from './Card'; +export { Card, CardHeader, CardBody, CardFooter } from './Card'; + export type { CardProps, CardHeaderProps,