# vue-layout
**Repository Path**: uivjs/vue-layout
## Basic Information
- **Project Name**: vue-layout
- **Description**: 处理页面整体布局的 Vue 3.0+ 组件。
- **Primary Language**: TypeScript
- **License**: MIT
- **Default Branch**: main
- **Homepage**: https://uivjs.gitee.io/vue-layout
- **GVP Project**: No
## Statistics
- **Stars**: 4
- **Forks**: 0
- **Created**: 2021-12-16
- **Last Updated**: 2024-04-01
## Categories & Tags
**Categories**: Uncategorized
**Tags**: Vue, vue3
## README
@uivjs/vue-layout
===
[](https://github.com/uivjs/vue-layout/actions/workflows/ci.yml)
[](https://www.npmjs.com/package/@uivjs/vue-layout)
[](https://www.npmjs.com/package/@uivjs/vue-layout)
[](https://uiwjs.github.io/npm-unpkg/#/pkg/@uivjs/vue-layout/file/README.md)
Layout component for Vue 3.0. Handling the overall layout of a page.
## Install
```bash
npm i @uivjs/vue-layout
```
## Usage
```vue
header
content
footer
```
```vue
Header
Content
Footer
Header
Sider
Content
Footer
Header
Content
Sider
Footer
Sider
Header
Content
Footer
```
## collapsed
```vue
Sider
Content
```
## Sider Props
Name | Type | Default | Description
---- | ---- | ---- | ----
collapsed | `boolean` | `false` | Current collapsed state
## Development
```bash
npm install # Installation dependencies
npm run bootstrap # Install dependencies in sub-packages
npm run build # Compile package
```
```bash
# listen to the component compile and output the .js file
# listen for compilation output type .d.ts file
npm run watch # Monitor the compiled package `@uivjs/vue-layout`
npm run start # development mode, listen to compile preview website instance
```
## License
Licensed under the MIT License.