import { Property } from '@grapp/nextra-theme' import { Callout } from "nextra/components";
import { Example, getExamples } from '../../../components/Example'
export const getStaticProps = () => { return getExamples(['inline/space', 'inline/align-y', 'inline/align-x']); }
The Inline
component arranges its children horizontally, allowing you to display multiple items side by side. If the children exceed the available space, the component wraps them to the next line, with equal spacing between children.
The alignX
prop can be used to align children horizontally.
The alignY
prop enables you to vertically align children of varying heights vertically, ensuring they are all at the same level.
The collapseBelow
prop allows you to collapse all items into a single vertical stack, ensuring that your content remains accessible, even on smaller screens.
The Inline
component is created using the Box
component. It extends all the props* supported by Box
, as well as React Native View, and the props mentioned below.
<Property types={['ResponsiveProp']}> Sets the space between children.
<Property types={['ResponsiveProp']}> Sets the horizontal space between children.
<Property types={['ResponsiveProp']}> Sets the vertical space between children.
<Property types={["ResponsiveProp<AxisX | Space>"]}> Aligns children horizontally.
<Property types={["ResponsiveProp"]}> Aligns children vertically.
<Property types={['Breakpoint']}> Stacks children vertically when the current breakpoint is smaller than the provided breakpoint.