# Submenu
### Usage
```js
import Submenu from "@appserver/components/submenu";
```
```jsx
),
},
{
id: "ToggleButton",
name: "Toggle Button",
content: (
{}}
/>
),
},
]}
startSelect={1}
/>
```
#### Data is an array of objects with following fields:
- id - unique id
- name - header in submenu
- content - HTML object that will be rendered under submenu
##### Example:
```jsx
{
id: "FileInput",
name: "File Input",
content: (
),
},
```
### Properties
| Props | Type | Required | Values | Default | Description |
| ------------- | :-------------: | :------: | :----: | :-----: | ----------------------------------------------------------------------------- |
| `data` | `array` | ✅ | - | - | List of elements |
| `startSelect` | `obj`, `number` | - | - | 0 | Object from data that will be chosen first **OR** Its index in **data** array |