Skip to content

Container ​

Max Widths

Loading...
  • Tag: <flint-container>
  • Class: FlintContainer

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintContainer } from 'flint-ui';

Usage ​

html
<flint-container></flint-container>

Properties ​

PropertyAttributeTypeDefaultDescription
disableGuttersdisable-guttersbooleanfalseDetermine the max-width of the container. The container width grows with the size of the screen. Set to false to disable maxWidth. / attribute: 'max-width', reflect: true, converter: { fromAttribute: (value: string | null): ContainerMaxWidth => value === null || value === 'false' ? false : value as ContainerMaxWidth, toAttribute: (value: ContainerMaxWidth): string | null => value === false ? null : value, }, }) maxWidth: ContainerMaxWidth = 'lg'; /** If true, the left and right padding is removed.
fixedfixedbooleanfalseSet the max-width to match the min-width of the current breakpoint. This logic is handled via CSS media queries.

Slots ​

NameDescription
(default)Default slot for content

CSS Custom Properties ​

PropertyDefault
--flint-container-padding16px
--flint-container-padding-sm24px
--flint-container-xs444px
--flint-container-sm600px
--flint-container-md900px
--flint-container-lg1200px
--flint-container-xl1536px