0.0.4-alpha.14 • Published 2 years ago

@graffft-waggle/container v0.0.4-alpha.14

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

filename: /packages/layouts/Container/Container.tsx

Container API

The API documentation of the Container Graffft Waggle component.

Import

import { Container } from '@graffft-waggle/container';

Container

// see @graffft-waggle/media-query
export type Breakpoint = 'sm' | 'md' | 'lg' | 'xl';

export type Breakpoints = {
  [key in Breakpoint]: number;
};
// see @graffft-waggle/container
type ContainerMaxWidths = {
  [key in Breakpoint]: number; // in px
};

Optional Props

NameTypeDefaultDescription
breakpointsBreakpointsdefaultBreakpointsobject of breakpoints, see @graffft-waggle/media-query for defaultBreakpoints value
containerMaxWidthsContainerMaxWidthsdefaultContainerMaxWidthsobject of container max-widths, see @graffft-waggle/container for defaultContainerMaxWidths value
customScssstring''custom scss

Demos

  • TODO