import React from 'react'; import styled from 'styled-components'; import { Button } from '@lendi/ui/Button'; import { Spacer } from '@lendi/ui/Layout'; import { Text, P, A } from '@lendi/ui/Typography'; import Search from '@lendi-ui/icon/Search'; import Add from '@lendi-ui/icon/Add'; export const HorizontalSpacer = (args) => ( A Link ); HorizontalSpacer.args = { xgap: '24', xalign: 'center', }; export const HorizontalYGap = (args) => ( A Link ); HorizontalYGap.args = { xgap: '16', ygap: '40', xalign: 'center', width: '50%', }; export const HorizontalWrapping = (args) => ( A Link ); HorizontalWrapping.args = { xgap: '16', shouldWrap: true, xalign: 'center', width: '50%', }; export const VerticalSpacer = (args) => ( A heading A subheading

Some text in a spacer with a sm gap

Some more text in a spacer with a sm gap

); VerticalSpacer.args = { ygap: '16' }; export const VerticalSpacerNested = (args) => ( A heading A subheading

Some text in a spacer with a sm gap

Some more text in a spacer with a sm gap


A nested spacer

A nested spacer with a lg gap, xl at the start and end, centered on y axis, and set to full width (100%)

A nested horizontal spacer:

Back to sm gap

); VerticalSpacerNested.args = { ygap: '16', }; const Tile = styled.div` width: 20%; height: 100px; background-color: red; `; Tile.displayName = 'Tile'; const Tile2 = styled.div` width: 100px; height: 100px; background-color: red; `; Tile2.displayName = 'Tile2'; export const TileSpacer = (args) => ( ); TileSpacer.args = { gap: '24', align: 'center', };