Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@angular/flex-layout

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/flex-layout

Angular Flex-Layout

  • 12.0.0-beta.35
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
229K
increased by7.83%
Maintainers
1
Weekly downloads
 
Created

What is @angular/flex-layout?

@angular/flex-layout is a powerful layout library for Angular that provides a sophisticated API using Flexbox CSS and mediaQuery. It allows developers to create responsive and adaptive layouts with ease.

What are @angular/flex-layout's main functionalities?

Responsive Layouts

This feature allows you to create responsive layouts that adapt to different screen sizes. The example shows a row layout that changes to a column layout on extra-small screens.

<div fxLayout="row" fxLayout.xs="column">
  <div fxFlex>Item 1</div>
  <div fxFlex>Item 2</div>
  <div fxFlex>Item 3</div>
</div>

Grid Layouts

This feature allows you to create grid layouts with flexible spacing and alignment. The example shows a row layout with items taking 25%, 50%, and 25% of the available space, respectively.

<div fxLayout="row" fxLayoutGap="10px">
  <div fxFlex="25">Item 1</div>
  <div fxFlex="50">Item 2</div>
  <div fxFlex="25">Item 3</div>
</div>

Alignment and Justification

This feature allows you to align and justify content within a layout. The example shows a row layout with content centered both horizontally and vertically.

<div fxLayout="row" fxLayoutAlign="center center">
  <div fxFlex>Centered Item</div>
</div>

Show/Hide Elements

This feature allows you to conditionally show or hide elements based on screen size. The example shows text that is hidden on screens larger than small.

<div fxShow fxHide.gt-sm>
  This text is hidden on screens larger than small.
</div>

Other packages similar to @angular/flex-layout

Keywords

FAQs

Package last updated on 15 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc