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

@4tw/ui-app-layout

Package Overview
Dependencies
Maintainers
9
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@4tw/ui-app-layout

## Project setup ``` yarn install ```

  • 1.0.0-alpha.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by600%
Maintainers
9
Weekly downloads
 
Created
Source

app-layout

Project setup

yarn install

Compiles and hot-reloads for development

yarn dev

Compiles and minifies for production

yarn build

Run your unit tests

yarn test-unit

Run your end-to-end tests

yarn test-e2e

Release the package

yarn release

Customize configuration

See Configuration Reference.

Usage

Requires vue@2.x, vuetify@2.x and lodash@4.x

Install the package in your project

yarn add @4tw/ui-app-layout

Register the component in your project

import AppLayout from '@4tw/ui-app-layout'

export default {
    name: 'MyAwesomeComponent',
    components: { AppLayout },
}

Use the component in your projects template

<template>
    <AppLayout>
        <!-- Your code goes here -->
    </AppLayout>
</template>

Api

Props

NameTypeDefaultDescription
appsArray[]The apps listed in the AppSwitcher
currentAppObjectnullThe current selected app in the AppSwitcher
customerString''Will be listed in the toolbar next to the AppSwitcher
versionString''Will be listed next to the company attribution
showHelpBooleanfalseEnables the Help Button
showFeedbackBooleanfalseEnables the feedback Button
miniVariantBooleanfalseEnables the mini variant of the navigation

Events

NameDescription
helpEmits when the help button has been clicked
feedbackEmits when the feedback button has been clicked
update:current-appEmits the current app when the current app has been changed
update:mini-variantEmits the current state of the mini variant when the mini variant has been changed

Slots

NameDescription
navigation-mainSlot to fill in the navigation items
navigation-rootSlot to replace the whole navigation drawer
toolbar-mainSlot to fill in the left section of the toolbar
toolbar-rootSlot to replace the whole toolbar
toolbar-actionsSlot to fill in actions for the toolbar next to the user menu
fallback-appSlot to define an app when no other apps are available
usermenuSlot to fill in the usermenu
avatarSlot to replace the whole avatar
avatar-imageSlot to set image of the user avatar
defaultSlot to define the content section. Usually needs a v-main to work properly

FAQs

Package last updated on 25 Mar 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