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

masonry-tile

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

masonry-tile

[![npm version](https://badge.fury.io/js/masonry-tile.svg)](https://badge.fury.io/js/masonry-tile) [![Downloads](https://img.shields.io/npm/dm/masonry-tile.svg)](https://www.npmjs.com/package/masonry-tile) [![GitHub license](https://img.shields.io/badge/l

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

npm version Downloads GitHub license

Masonry Tile

Allows you to have masonry style tiles with Material Grid List.

Installation

npm i masonry-tile --save

Requirements

  • peerDependencies:

    • angular 13.0.0 and more
    • angular/cdk 13.0.0 and more
    • angular/material 13.0.0 and more

Demo

See a demo.

Usage

example

Example with a list of images and description.

<mat-grid-list #matGridList [cols]="4">
  <mat-grid-tile *ngFor="let imageItem of images" #matGridTile>
    <masonry-tile
      [rowHeight]="1"
      [gutterSize]="1"
      [matGridTile]="matGridTile"
      [matGridList]="matGridList"
    >
      <!-- content start -->
      <img [src]="imageItem?.src" [alt]="imageItem?.alt" />
      <div>{{ imageItem?.alt }}</div>
      <!-- content end -->
    </masonry-tile>
  </mat-grid-tile>
</mat-grid-list>

Publishing the library

npm run build:lib
cd dist/masonry-tile
npm publish

Update Demo

npm run build:demo

License

Like Angular, this module is released under the permissive MIT license. Your contributions are always welcome.

FAQs

Package last updated on 28 Sep 2022

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