Skip to content

Commit

Permalink
docs(mui-card): add prop definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmartDOTin committed Jan 29, 2025
1 parent b9950ee commit b6bf7eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/card/src/lib/CardHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import { default as MuiCardHeader, CardHeaderProps as MuiCardHeaderProps } from
import { StatusChip, StatusChipProps } from '@availity/mui-chip';

type CardStatusChipProps = StatusChipProps & {
/** Setting the position to `bottom` displays the StatusChip under the header and subheader. Setting the position to `right` displays the StatusChip next to the actions section. */
position: 'bottom' | 'right';
};

export interface CardHeaderProps extends MuiCardHeaderProps {
children?: React.ReactNode;
/** These props will be forwarded to the StatusChip. */
statusChipProps?: CardStatusChipProps;
/** Section at the top-right of the card for displaying logos. */
logo?: React.ReactNode;
}

Expand Down

0 comments on commit b6bf7eb

Please sign in to comment.