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

Function VStack

examples/react-router/app/components/VStack/VStack.tsx:35–66  ·  view source on GitHub ↗
({
  flex,
  gap,
  width,
  height,
  padding,
  margin,
  background,
  alignHorizontal,
  alignVertical,
  ...props
})

Source from the content-addressed store, hash-verified

33>;
34
35export const VStack: FC<Props> = ({
36 flex,
37 gap,
38 width,
39 height,
40 padding,
41 margin,
42 background,
43 alignHorizontal,
44 alignVertical,
45 ...props
46}) => (
47 <div
48 className={variants({ alignHorizontal, alignVertical })}
49 style={{
50 flex,
51 gap,
52 width,
53 height,
54 paddingTop: padding?.top,
55 paddingBottom: padding?.bottom,
56 paddingLeft: padding?.left,
57 paddingRight: padding?.right,
58 marginTop: margin?.top,
59 marginBottom: margin?.bottom,
60 marginLeft: margin?.left,
61 marginRight: margin?.right,
62 background,
63 }}
64 {...props}
65 />
66);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected