Skip to content

Provides HTML UI layout for Angular applications; using Flexbox and a Responsive API

License

Notifications You must be signed in to change notification settings

jerfer/flex-layout

This branch is 28 commits behind angular/flex-layout:master.

Folders and files

NameName
Last commit message
Last commit date
May 18, 2021
Nov 12, 2020
Aug 3, 2021
May 31, 2018
Mar 30, 2021
Aug 22, 2021
Dec 13, 2018
May 18, 2021
Nov 4, 2016
Dec 14, 2016
Nov 8, 2019
Aug 3, 2021
Aug 3, 2021
Sep 15, 2021
Jan 20, 2018
Feb 1, 2018
May 14, 2020
Jan 1, 2020
May 14, 2020
Jul 25, 2018
Jul 27, 2017
Jul 27, 2017
Sep 15, 2021
Sep 21, 2020
Oct 5, 2018
Jan 15, 2019
Sep 30, 2021

Repository files navigation

Angular Flex-Layout

npm version Build status Gitter

Angular Flex Layout provides a sophisticated layout API using Flexbox CSS + mediaQuery. This module provides Angular developers with component layout features using a custom Layout API, mediaQuery observables, and injected DOM flexbox-2016 CSS stylings.

The Flex Layout engine intelligently automates the process of applying appropriate Flexbox CSS to browser view hierarchies. This automation also addresses many of the complexities and workarounds encountered with the traditional, manual, CSS-only application of box CSS.

The real power of Flex Layout, however, is its responsive engine. The Responsive API enables developers to easily specify different layouts, sizing, visibilities for different viewport sizes and display devices.


Getting Started

Start by installing the Angular Layout library from npm

npm i -s @angular/flex-layout @angular/cdk

Next, you'll need to import the Layout module in your app's module.

app.module.ts

import { FlexLayoutModule } from '@angular/flex-layout';
...

@NgModule({
    ...
    imports: [ FlexLayoutModule ],
    ...
});

After that is configured, you can use the Angular Layout attributes in your HTML tags for flex layout:

<div fxLayout="row" fxLayoutAlign="space-between">
</div>

Check out all of the available options for using Angular Layout in your application.


Quick Links

Demos

StackBlitz Templates

Developers


Browser Support

  caniuseflexbox



License

The sources for this package are in the Flex Layout repository.
Please file issues and pull requests against that repo.

License: MIT

About

Provides HTML UI layout for Angular applications; using Flexbox and a Responsive API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 89.7%
  • HTML 3.7%
  • JavaScript 3.1%
  • SCSS 1.8%
  • Shell 1.7%