** component. For values of **click-effect**, see [Universal Attributes](../reference/arkui-js/js-components-common-attributes.md).
```
```
## Setting the Form Style
Add the **background-color** and **border** attributes.
```
/* xxx.css */
.container {
flex-direction: column;
align-items: center;
justify-content: center;
background-color: #F1F3F5;
}
.formClass{
width: 80%;
padding: 10px;
border: 1px solid #c3d3e7;
}
```

## Adding Response Events
To submit or reset a form, add the **submit** and **reset** events.
```
```
```
/* xxx.js */
import prompt from '@system.prompt';
export default{
onSubmit(result) {
prompt.showToast({
message: result.value.radioGroup
})
},
onReset() {
prompt.showToast({
message: 'Reset All'
})
}
}
```

## Example Scenario
Select an option and submit or reset the form data.
Create [****](../reference/arkui-js/js-components-basic-input.md) components, set their **type** attribute to **checkbox** and **radio**, and use the **onsubmit** and **onreset** events of the **
** component to submit and reset the form data.
```