;
export const MessageBranchContent = ({
children,
+ className,
...props
}: MessageBranchContentProps) => {
const { currentBranch, setBranches, branches } = useMessageBranch();
@@ -216,8 +217,9 @@ export const MessageBranchContent = ({
return childrenArray.map((branch, index) => (
div]:pb-0",
- index === currentBranch ? "block" : "hidden"
+ "gap-2 overflow-hidden [&>div]:pb-0",
+ className,
+ index === currentBranch ? "grid" : "hidden"
)}
key={branch.key}
{...props}