fix: add className prop to ListUI component for customizable styling
This commit is contained in:
parent
8dedb23461
commit
37693e3ea1
|
|
@ -5,6 +5,7 @@ import get from "lodash.get";
|
||||||
import { ListBetter } from "../tablelist/List";
|
import { ListBetter } from "../tablelist/List";
|
||||||
export const ListUI: React.FC<any> = ({
|
export const ListUI: React.FC<any> = ({
|
||||||
tabHeader,
|
tabHeader,
|
||||||
|
className,
|
||||||
name,
|
name,
|
||||||
modeTab,
|
modeTab,
|
||||||
column,
|
column,
|
||||||
|
|
@ -48,7 +49,12 @@ export const ListUI: React.FC<any> = ({
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col flex-grow rounded-lg border border-gray-200 py-2 overflow-hidden">
|
<div
|
||||||
|
className={cx(
|
||||||
|
"flex flex-col flex-grow rounded-lg border border-gray-200 py-2 overflow-hidden",
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
>
|
||||||
<div className="flex flex-col flex-grow">
|
<div className="flex flex-col flex-grow">
|
||||||
<div className="flex flex-col flex-grow">
|
<div className="flex flex-col flex-grow">
|
||||||
{title ? (
|
{title ? (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue