src/Bootstrap/Traits/BuildsForms.php
public function file($name = null, $description = null): CustomFile
    {
        $element = new CustomFile($this->formState);

        return $element
            ->nameIf($name, $name)
            ->idIf($name, field_name_to_id($name, 'wrapper'))
            ->description($description);
    }
public function file($name = null, $description = null): CustomFile
    {
        $element = new CustomFile($this->formState);

        return $element
            ->nameIf($name, $name)
            ->idIf($name, field_name_to_id($name, 'wrapper'))
            ->description($description);
    }
@param string|null $name

@return \MarvinLabs\Html\Bootstrap\Elements\CustomFile