MCPcopy Create free account
hub / github.com/composify-js/composify / VStack

Function VStack

packages/react/src/ui/VStack/VStack.tsx:19–56  ·  view source on GitHub ↗
({
  className,
  alignHorizontal,
  alignVertical,
  flex,
  padding,
  width,
  margin,
  height,
  gap,
  background,
  ...props
})

Source from the content-addressed store, hash-verified

17};
18
19export const VStack: FC<Props> = ({
20 className,
21 alignHorizontal,
22 alignVertical,
23 flex,
24 padding,
25 width,
26 margin,
27 height,
28 gap,
29 background,
30 ...props
31}) => (
32 <div
33 className={variants('vstack', {
34 className,
35 alignHorizontal,
36 alignVertical,
37 ...(background?.startsWith('#') ? {} : { background }),
38 })}
39 style={{
40 flex,
41 paddingTop: padding?.top,
42 paddingBottom: padding?.bottom,
43 paddingLeft: padding?.left,
44 paddingRight: padding?.right,
45 marginTop: margin?.top,
46 marginBottom: margin?.bottom,
47 marginLeft: margin?.left,
48 marginRight: margin?.right,
49 gap,
50 width,
51 height,
52 ...(background?.startsWith('#') ? { background } : {}),
53 }}
54 {...props}
55 />
56);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected