mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #46269 fix(carbon-components-react): update DataTableSkeleton props by @dabrad26
Add show props for header and toolbar per Carbon (https://react.carbondesignsystem.com/?path=/story/datatableskeleton--default)
This commit is contained in:
parent
ecc0b38f36
commit
3bea70153a
@ -37,6 +37,7 @@ import {
|
||||
ButtonRenderIconRenderProps,
|
||||
Modal,
|
||||
InlineLoading,
|
||||
DataTableSkeleton,
|
||||
} from 'carbon-components-react';
|
||||
import Link from 'carbon-components-react/lib/components/UIShell/Link';
|
||||
|
||||
@ -630,3 +631,12 @@ const sideNavChildren = (
|
||||
const modal = (
|
||||
<Modal primaryButtonText={<InlineLoading />} secondaryButtonText={<InlineLoading />} />
|
||||
)
|
||||
|
||||
// DataTableSkeleton
|
||||
const dataTableSkeleton = (
|
||||
<DataTableSkeleton showHeader={true} showToolbar={true} columnCount={5} rowCount={6} compact={false} zebra={false} />
|
||||
);
|
||||
|
||||
const dataTableSkeletonBasic = (
|
||||
<DataTableSkeleton />
|
||||
);
|
||||
|
||||
@ -12,6 +12,8 @@ export interface DataTableSkeletonProps extends InheritedProps {
|
||||
columnCount?: number;
|
||||
// headers?: ReadonlyArray<string> | ReadonlyArray<ShapeOf<HeaderType>>; // doesn't seem to be used anymore but prop type is still there so leaving this commented out.
|
||||
rowCount?: number;
|
||||
showHeader?: boolean;
|
||||
showToolbar?: boolean;
|
||||
zebra?: boolean;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user