new Component()
Creates a new component for the given type
new Component(string $type, array $attrs = [ ])
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $typerequired | string |
no default value | The component type |
| $attrs | array |
[ ]
|
An array of all passed attributes |