@ximax/layout
v1.0.3
Published
A flexible and responsive layout system for Vue3 applications
Maintainers
Readme
@ximax/layout
A flexible and responsive layout system for Vue3 applications.
Installation
npm install @ximax/layout
# or
pnpm add @ximax/layout
# or
yarn add @ximax/layoutPeer Dependencies
This package has the following peer dependencies that you need to install:
npm install vue naive-ui
# or
pnpm add vue naive-ui
# or
yarn add vue naive-uiUsage
<template>
<AdminLayout>
<template #header>
<div>Header Content</div>
</template>
<template #sider>
<div>Sidebar Content</div>
</template>
<div>Main Content</div>
<template #footer>
<div>Footer Content</div>
</template>
</AdminLayout>
</template>
<script setup>
import { AdminLayout } from '@ximax/layout'
</script>
<style>
/* Import the CSS file */
@import '@ximax/layout/dist/layout.css';
</style>CSS Import
To use the layout styles, you need to import the CSS file:
@import '@ximax/layout/dist/layout.css';Or in your main entry file:
import '@ximax/layout/dist/layout.css'Available Components
AdminLayout- Main admin layout componentSplitContainer- Split container for creating resizable panelsPageTab- Tab component for pagesSimpleScrollbar- Custom scrollbar componentBetterScroll- Better scroll componentButtonIcon- Icon button componentLoginBackground1- Login background variant 1LoginBackground2- Login background variant 2
Constants
LAYOUT_MAX_Z_INDEX- Maximum z-index value for layoutLAYOUT_SCROLL_EL_ID- Scroll element ID constant
License
MIT
