fix: add className prop to ListUI component for customizable styling

This commit is contained in:
faisolavolut 2025-03-18 11:07:09 +07:00
parent 8dedb23461
commit 37693e3ea1
1 changed files with 7 additions and 1 deletions

View File

@ -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 ? (