Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/angular/flex-layout

Provides HTML UI layout for Angular applications; using Flexbox and a Responsive API
https://github.com/angular/flex-layout

adaptive angular engine flexbox grid layout mediaquery responsive

Last synced: about 2 months ago
JSON representation

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

Lists

README

        

# Angular Flex-Layout

[![npm version](https://badge.fury.io/js/%40angular%2Fflex-layout.svg)](https://www.npmjs.com/package/%40angular%2Fflex-layout)
[![Build status](https://circleci.com/gh/angular/flex-layout.svg?style=svg)](https://circleci.com/gh/angular/flex-layout)
[![Gitter](https://badges.gitter.im/angular/flex-layout.svg)](https://gitter.im/angular/flex-layout)

**NOTE: The Angular team no longer publishes new releases of this project. Please review [this blog post](https://blog.angular.io/modern-css-in-angular-layouts-4a259dca9127)
for alternatives, and [this article](https://medium.com/@caerus.karu/farewell-flex-layout-aaa567023769) 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](https://github.com/angular/flex-layout/wiki/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**

```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:
```html



```

Check out [all of the available options](https://github.com/angular/flex-layout/wiki/Declarative-API-Overview) for using Angular Layout in your application.

---

### Quick Links

* [ChangeLog](https://github.com/angular/flex-layout/blob/master/CHANGELOG.md)
* [Wiki Documentation](https://github.com/angular/flex-layout/wiki)

### Demos

* [Explore Examples Online](https://tburleson-layouts-demos.firebaseapp.com/)
* [Demo Source Code](https://github.com/angular/flex-layout/blob/master/src/apps/demo-app/src/app/app.module.ts)

### StackBlitz Templates

* [Flex-Layout Template](https://stackblitz.com/edit/flex-layout-seed)
* [Flex-Layout + Material](https://stackblitz.com/edit/flex-layout-material-seed)

### Developers

* [API Documentation](https://github.com/angular/flex-layout/wiki/API-Documentation)
* [Developer Setup](https://github.com/angular/flex-layout/wiki/Developer-Setup)
* [Builds + Fast Start](https://github.com/angular/flex-layout/wiki/Fast-Starts)
* [Integration with Angular CLI](https://github.com/angular/flex-layout/wiki/Using-Angular-CLI)

----

### Browser Support
 

![caniuseflexbox](https://cloud.githubusercontent.com/assets/210413/21288118/917e3faa-c440-11e6-9b08-28aff590c7ae.png)


---

### License

The sources for this package are in the [Flex Layout](https://github.com/angular/flex-layout) repository.

Please file issues and pull requests against that repo.

License: MIT