diff --git a/package.json b/package.json index dd7d57b..b132756 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "1.1.0", + "version": "1.1.1", "name": "@kernelui/smartable", "description": "Kernel UI Smartable.", "scripts": { diff --git a/src/Smartable/Instance.tsx b/src/Smartable/Instance.tsx index bc5e9d1..ff94ed4 100644 --- a/src/Smartable/Instance.tsx +++ b/src/Smartable/Instance.tsx @@ -66,10 +66,10 @@ export function PaginatedInstance(props: InstancePropertie /** * Base component for a Smartable table. */ -export function Table({columns, children}: React.PropsWithChildren>) +export function Table({className, columns, children}: React.PropsWithChildren>) { return ( - +
diff --git a/src/Smartable/Smartable.tsx b/src/Smartable/Smartable.tsx index 63879dd..5f3b90e 100644 --- a/src/Smartable/Smartable.tsx +++ b/src/Smartable/Smartable.tsx @@ -15,6 +15,11 @@ export type SmartableData = Promisable<(Promisable { + /** + * Table custom class name. + */ + className?: string; + /** * Table data. */