You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@codin/mwc-grid

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codin/mwc-grid

Element for highlighting code

0.1.2
latest
Source
npm
Version published
Maintainers
1
Created
Source

Grid

Simple component that implements Material Design grid

<mwc-grid>
    <mwc-grid-cell desktop="6">
        <p>some content</p>
    </mwc-grid-cell>
    <mwc-grid-cell desktop="6">
        <mwc-grid-inner>
            <mwc-grid-cell span="8">
                <p>some other content</p>
            </mwc-grid-cell>
        </mwc-grid-inner>
    </mwc-grid-cell>
</mwc-grid>

Components

mwc-grid

PropertyDescriptionValue
alignalignment of containerleft, right

mwc-grid-inner

This element is append before content slot of grid

To nest layout grid, add mwc-grid-inner to wrap around nested mwc-grid-cell within an existing mwc-grid-cell. However, the Material Design guidelines do not recommend having a deeply nested grid as it might mean an over complicated UX.

mwc-grid-element

PropertyDescriptionValue
spangrid span1-12 (default: 12)
mobilegrid span @mobile1-4
tabletgrid span @tablet1-8
desktopgrid span @desktop1-12
orderorder of cellnumber
alignalignment of celltop, middle, bottom

see material.io

Keywords

material design

FAQs

Package last updated on 26 May 2020

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