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

        return $element
            ->nameIf($name, $name)
            ->idIf($name, field_name_to_id($name));
    }
public function simpleFile($name = null): File
    {
        $element = new File($this->formState);

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

@return \MarvinLabs\Html\Bootstrap\Elements\File