# Grid
### Install
``` javascript
import Vue from 'vue';
import { Grid, GridItem } from 'vant';
Vue.use(Grid).use(GridItem);
```
## Usage
### Basic Usage
```html
```
### Column Num
```html
```
### Custom Content
```html
```
### Square
```html
```
### Gutter
```html
```
### Route
```html
```
### Show Info
```html
```
## API
### Grid Props
| Attribute | Description | Type | Default | Version |
|------|------|------|------|------|
| column-num | Column Num | *number* | `4` | 2.0.4 |
| gutter | Gutter | *string \| number* | `0` | - |
| border | Whether to show border | *boolean* | `true` | - |
| center | Whether to center content | *boolean* | `true` | - |
| square | Whether to be square shape | *boolean* | `false` | - |
| clickable | Whether to show click feedback when clicked | *boolean* | `false` | - |
| icon-size | Icon size | *string \| number* | `28px` | 2.2.6 |
### GridItem Props
| Attribute | Description | Type | Default | Version |
|------|------|------|------|------|
| text | Text | *string* | - | - |
| icon | Icon name or URL | *string* | - | - |
| dot | Whether to show red dot | *boolean* | `false` | 2.2.1 |
| info | Content of the badge | *string \| number* | - | 2.2.1 |
| url | Link URL | *string* | - | - |
| to | Target route of the link, same as to of vue-router | *string \| object* | - | - |
| replace | If true, the navigation will not leave a history record | *boolean* | `false` | - |
### GridItem Events
| Event | Description | Arguments |
|------|------|------|
| click | Triggered when clicked | event: Event |
### GridItem Slots
| Name | Description |
|------|------|
| default | Custom content |
| icon | Custom icon |
| text | Custom text |