MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / Col

Function Col

apps/baseai.dev/src/components/mdx/Col.tsx:3–20  ·  view source on GitHub ↗
({
	children,
	sticky = false
}: {
	children: React.ReactNode;
	sticky?: boolean;
})

Source from the content-addressed store, hash-verified

1import clsx from 'clsx';
2
3export function Col({
4 children,
5 sticky = false
6}: {
7 children: React.ReactNode;
8 sticky?: boolean;
9}) {
10 return (
11 <div
12 className={clsx(
13 '[&>:first-child]:mt-0 [&>:last-child]:mb-0',
14 sticky && 'xl:sticky xl:top-24'
15 )}
16 >
17 {children}
18 </div>
19 );
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected