new Component() Creates a new component for the given type Full class name: Kirby\Toolkit\Component kirby/src/Toolkit/Component.php#L115 new Component(string $type, array $attrs = [ ]) Parameters Name Type Default $type * string – $attrs array [ ] Parent class Kirby\Toolkit\Component