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

flexbox-vue

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flexbox-vue

A Vue Component to flexbox

  • 1.0.13
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

flexbox-vue

A Vue Component to flexbox

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# package
npm run prod

Usage

Install it via npm:

  • npm install -S flexbox-vue

Example

  1. Global import
import Flexbox from 'flexbox-vue'
Vue.use(Flexbox);
  1. Use it
<FlexboxContainer orient="vertical">
    <FlexboxItem grow="1">
      <p>demo1</p>
    </FlexboxItem>
    <FlexboxItem>
      <p>demo2</p>
    </FlexboxItem>
</FlexboxContainer>

Props

FlexboxContainer

  • gutter Spacing between items, Unit is px
    • type: Number,
    • default: 8
  • orient (flex-direction)
    • type: String,
    • default: 'horizontal'
    • options: 'horizontal' | 'vertical'
  • justify:
    • type: String
    • default: 'flex-start'
    • options: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around'
  • align:
    • type: String
    • default: flex-start
    • options: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch'

FlexboxItem

  • grow (flex-grow)
    • type: Number
    • default: 0
  • shrink (flex-shrink)
    • type: Number
    • default: 1
  • basis (flex-basis)
    • type: Number | String
    • default: 'auto'
    • options: | 'auto'
  • order (order)
    • type: Number
    • default: 0

FAQs

Package last updated on 02 Sep 2017

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