import Inline from '@precursor/inline';Example
import Inline from '@precursor/inline';
import Button from '@precursor/button';
export default function Example() {
return (
<Inline as="div" gap="xs">
<Button primary>Save</Button>
<Button>Cancel</Button>
</Inline>
);
}
Props
| Prop | Type | Default | Notes |
|---|---|---|---|
childrenRequired | ReactNode | — | — |
as | "div" | "span" | 'span' | — |
justify | "center" | "start" | "end" | "flex-start" | "flex-end" | 'flex-start' | — |
gap | "xxs" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "xxxl" | 's' | — |