import { Space } from "@valence-ui/core";
function MyComponent() {
return (
<Space
height={20}
/>
)
}
Horizontal context
The Space component can also be used within horizontal components; simply use the width prop instead.
import { Space } from "@valence-ui/core";
function MyComponent() {
return (
<Space
width={20}
/>
)
}
Grow
The Space component can grow to fill any blank space within the parent container using the grow prop. This will automatically adjust to horizontal or vertical contexts.
import { Space } from "@valence-ui/core";
function MyComponent() {
return (
<Space
grow
/>
)
}