# Category ### Intro Component for displaying product categories. ### Install ```js import { createApp } from 'vue' import { Category, CategoryPane } from '@nutui/nutui' const app = createApp() app.use(Category) app.use(CategoryPane) ``` ### Classic Classification Mod data defination [categoryData.js](https://storage.360buyimg.com/nutui/3x/categoryData.js)。 :::demo ```vue ``` ::: ### Show Text Only :::demo ```vue ``` ::: ### Custom taxonomy :::demo ```vue ``` ::: ## API ### Category Props | Attribute | Description | Type | Default | | --- | --- | --- | --- | | type | Classification mode: `classify`, `text`, `custom` | string | `classify` | | category | Left navigation bar data list | Array | `[]` | ### Category Events | Event | Description | Arguments | | --- | --- | --- | | change | Classic classification, click on the left navigation bar to get the data list on the right | Clicked data | | change-text | In text classification mode, click on the left navigation bar to get the data list on the right | Input data | | change-custom | Customize, click the left navigation bar to get the data list on the right | Current quantity | ### CategoryPane Props | Attribute | Description | Type | Default | | --- | --- | --- | --- | | category-child | The current classification data is displayed on the right | Array | `[]` | | custom-category | Custom categorical data | Array | `[]` | ### CategoryPane Events | Event | Description | Arguments | | --- | --- | --- | | on-change | Click on the right classified data trigger | Clicked data | ### CategoryPane Slots | Name | Description | | --- | --- | | default | Custom content | ## Theming ### CSS Variables The component provides the following CSS variables, which can be used to customize styles. Please refer to [ConfigProvider component](#/en-US/component/configprovider). | Name | Default Value | | --- | --- | | --nut-category-bg-color | _rgba(255, 255, 255, 1)_ | | --nut-category-list-left-bg-color | _rgba(246, 247, 249, 1)_ | | --nut-category-list-item-color | _var(--nut-title-color)_ | | --nut-category-list-item-checked-color | _rgba(255, 255, 255, 1)_ | | --nut-category-list-item-checked-img-bg-color | _var(--nut-primary-color)_ | | --nut-category-pane-gray-color | _#666_ | | --nut-category-pane-border-color | _rgb(153, 153, 153)_ | | --nut-category-pane-title-color | _rgba(51, 51, 51, 1)_ |