Skip to content

Commit a95e981

Browse files
committed
Fix props not displaying in the docs
1 parent 5815705 commit a95e981

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/module/src/DataViewToolbar/DataViewToolbar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import React from 'react';
1+
import React, { PropsWithChildren } from 'react';
22
import { Toolbar, ToolbarContent, ToolbarItem, ToolbarItemVariant } from '@patternfly/react-core';
33

4-
export interface DataViewToolbarProps {
4+
export interface DataViewToolbarProps extends PropsWithChildren {
55
/** Toolbar className */
66
className?: string;
77
/** Custom OUIA ID */
@@ -10,7 +10,7 @@ export interface DataViewToolbarProps {
1010
pagination?: React.ReactNode;
1111
}
1212

13-
export const DataViewToolbar: React.FC<React.PropsWithChildren<DataViewToolbarProps>> = ({ className, ouiaId = 'DataViewToolbar', pagination, children, ...props }: React.PropsWithChildren<DataViewToolbarProps>) => (
13+
export const DataViewToolbar: React.FC<DataViewToolbarProps> = ({ className, ouiaId = 'DataViewToolbar', pagination, children, ...props }: DataViewToolbarProps) => (
1414
<Toolbar ouiaId={ouiaId} className={className} {...props}>
1515
<ToolbarContent>
1616
{pagination && (

0 commit comments

Comments
 (0)