## Components
### `PbActions`
[See slack reference](https://api.slack.com/reference/block-kit/blocks#actions)
```html
...
```
### `PbContext`
[See slack reference](https://api.slack.com/reference/block-kit/blocks#context)
```html
...
```
### `PbDivider`
[See slack reference](https://api.slack.com/reference/block-kit/blocks#divider)
```html
```
### `PbHeader`
[See slack reference](https://api.slack.com/reference/block-kit/blocks#header)
```html
This is header block
```
### `PbImage`
[See slack reference](https://api.slack.com/reference/block-kit/blocks#image)
**Props**
| Name | Type | Required |
| ----- | ------ | -------- |
| `src` | string | Yes |
| `alt` | string | Yes |
**Example**
```html
```
### `PbFormItem`
[See slack reference](https://api.slack.com/reference/block-kit/blocks#input)
**Props**
| Name | Type | Required | Default Value | Description |
| ---------- | ------- | -------- | ------------- | ------------------------------------------------------------------------- |
| `name` | string | Yes | | Unique identifier of form item. It's is like `` in browser |
| `label` | string | Yes | | Title of form item |
| `required` | boolean | No | false | |
| `hint` | string | No | | |
**Example**
```html
```
### `PbSection`
[See slack reference](https://api.slack.com/reference/block-kit/blocks#section)
**Props**
| Name | Type | Required | Description |
| ------ | ------ | --------- | ------------------------------------------------------------ |
| `text` | string | Preferred | This prop is not required if have section-fields in children |
**Example**
```html
```
### `PbSectionFields`
[See slack reference](https://api.slack.com/reference/block-kit/blocks#section_fields)
```html
This
Is
Section
Fields
```
### `PbSectionAccessory`
[See field named `accessory` of section](https://api.slack.com/reference/block-kit/blocks#section_fields)
```html
```
### `PbButton`
[See slack reference](hhttps://api.slack.com/reference/block-kit/block-elements#button)
**Props**
| Name | Type | Required |
| ------- | ------ | -------- |
| `url` | string | No |
| `style` | string | No |
**Events**
| Name | Type | Description |
| ------- | ------------------------------------------------ | --------------------- |
| `click` | ({ trigger_id }: { trigger_id: string }) => void | Triggers when clicked |
**Example**
```html
Button
```
### `PbCheckboxGroup`
A group of PbCheckbox
**Warning**: PbCheckGroup can't update without uesr interaction
**Props**
| Name | Type | Required |
| ------- | -------- | -------- |
| `value` | string[] | Yes |
**Example**
```html
```
### `PbCheckbox`
[See slack reference](https://api.slack.com/reference/block-kit/composition-objects#option)
**Props**
| Name | Type | Required |
| ------------- | ------ | -------- |
| `value` | string | Yes |
| `description` | string | No |
| `url` | string | No |
**Example**
```html
Checkbox
```
### `PbRadioGroup`
A group of PbRadioButton
**Warning**: PbRadioGroup can't update without uesr interaction
**Props**
| Name | Type | Required |
| ------- | ------ | -------- |
| `value` | string | Yes |
**Example**
```html
```
### `PbRadioButton`
[See slack reference](https://api.slack.com/reference/block-kit/composition-objects#option)
**Props**
| Name | Type | Required |
| ------------- | ------ | -------- |
| `value` | string | Yes |
| `description` | string | No |
| `url` | string | No |
**Example**
```html
Radio
```
### `PbDatePicker`
[See slack reference](https://api.slack.com/reference/block-kit/block-elements#datepicker)
**Props**
| Name | Type | Required |
| ------------- | ------ | -------- |
| `placeholder` | string | Yes |
| `value` | string | No |
**Events**
| Name | Type | Description |
| ------- | ----------------------- | --------------------------- |
| `input` | (value: string) => void | Triggers when value changes |
**Example**
```html
```
### `PbSelectMenu`
A PbSelectMenu allows user to select multiple items from a group of PbOption
**Props**
| Name | Type | Required | Default Value |
| ------------- | ---------------------------------------------------- | -------- | ------------- |
| `type` | 'static' or 'users' or 'conversations' or 'channels' | Yes | static |
| `placeholder` | string | No | |
| `value` | string | No | |
**Events**
| Name | Type | Description |
| ------- | ----------------------- | --------------------------- |
| `input` | (value: string) => void | Triggers when value changes |
**Example**
```html
Option
```
### `PbText`
A plain text component for PbSectionFields
**Example**
```html
Text
```
### `PbModal`
**Warning**: PbModal must be declared at the top level
[See slack reference](https://api.slack.com/surfaces/modals)
**Props**
| Name | Type | Required | Description |
| ----------- | -------------------------------------------------------- | -------- | -------------------------------------------------------------------------------------------------------- |
| `title` | string | Yes | |
| `submit` | string | No | Submit button text of modal |
| `close` | string | No | Close button text of modal |
| `triggerId` | string | Yes | `triggerId` is unique id. it's generated when button clicked |
| `open` | boolean | No | visibility of Modal |
| `onSubmit` | (value: Record) | No | triggers when submit clicked. Parameter is values group of value of PbFormItem declared within the modal |
**Events**
| Name | Type | Description |
| ------- | ---------- | --------------------------- |
| `close` | () => void | Triggers when close clicked |
**Example**
```vue
Show Modal
```