# ablocks/2.9.1/includes/blocks/form-checkbox/attributes.php

aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder &amp; Animation Builder, version 2.9.1. 56 lines.

- Page: https://pluginprobe.com/plugins/ablocks/2.9.1/code/includes/blocks/form-checkbox/attributes.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.9.1/raw/includes/blocks/form-checkbox/attributes.php
- Modified: 2025-04-22T12:59:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ablocks/2.9.1/code/includes/blocks/form-checkbox/attributes.php#L10-L20`.

```php
<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$attributes = [
	'block_id' => array(
		'type' => 'string',
		'default' => ''
	),
	'label' => [
		'type' => 'string',
		'default' => '',
	],
	'inputWidth' => [
		'type' => 'number',
		'default' => 100
	],
	'errorMsg' => [
		'type' => 'string',
		'default' => 'This field is required',
	],
	'helperText' => [
		'type' => 'string',
		'default' => '',
	],
	'inputType' => [
		'type' => 'string',
		'default' => ''
	],
	'name' => [
		'type' => 'string',
		'default' => ''
	],
	'isRequired' => [
		'type' => 'boolean',
		'default' => false,
	],
	'isChecked' => [
		'type' => 'boolean',
		'default' => false,
	],
	'placeholder' => [
		'type' => 'string',
		'default' => 'Enter your message'
	],
];

$attributes = array_merge(
	$attributes,
);

return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );


```
