angular/flex-layout

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

TypeScript

5,817

731 commits

updated Sep 3, 2024

See the code

README

Angular Flex-Layout

npm version Build status Gitter

NOTE: The Angular team no longer publishes new releases of this project. Please review this blog post for alternatives, and this article for the explanation and next steps.

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.


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

adaptive
angular
engine
flexbox
grid
layout
mediaquery
responsive

angular/flex-layout

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

TypeScript

5,817

731 commits

updated Sep 3, 2024

See the code

README

Angular Flex-Layout

npm version Build status Gitter

NOTE: The Angular team no longer publishes new releases of this project. Please review this blog post for alternatives, and this article for the explanation and next steps.

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.


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

adaptive
angular
engine
flexbox
grid
layout
mediaquery
responsive

Project health

Overall

3.6/10

Maintained

0/10

Code review

1/10
OpenSSF Scorecard

Latest release

15.0.0-beta.42 · Jan 24, 2023

Releases this year

0
Deprecated

Significant stargazers

James Henry

1,004 followers · starred Dec 2016

Wassim Chegham

1,586 followers · starred Nov 2016

Sz. Kristóf

8 followers · starred May 2019

Eoin O'Brien

43 followers · starred Oct 2017