Home

Awesome

fileable logo

Fileable Component: Folder

Fileable template component used to create folders.

Folders can contain files and other folders

import File from 'fileable-component-file';
import Folder from 'fileable-component-folder';
const template = ()=><Folder name='project/'>
    <File name='empty_file'/>
    <Folder name='empty_folder'/>
</Folder>

Attributes

name

A folder must have a name attribute.

const template = ()=><Folder name='empty_folder' />

zip

Archives can be created with using the zip attribute

const template = ()=><Folder name='project' zip>
    <File name='empty_file'/>
</Folder>

extension

Extension appended to name.

const template = ()=><Folder name='project' zip extension='.zip'>
    <File name='empty_file' />
</Folder>;

API

Table of contents

Todo