Skip to content
العربية
Layout

Stack, Inline

Vertical and wrapping horizontal groups with a gap from the spacing scale.

import { Stack, Inline } from "@percentsa/ui";

Examples

1
2
3
1
2
3
Code
export function StackInlineExample() {
  return (
    <Split>
      <Stack gap={3}>
        <Box>1</Box>
        <Box>2</Box>
        <Box>3</Box>
      </Stack>
      <Inline gap={3}>
        <Box>1</Box>
        <Box>2</Box>
        <Box>3</Box>
      </Inline>
    </Split>
  );
}