VOOZH about

URL: https://www.geeksforgeeks.org/css/bulma-file/

⇱ Bulma | File - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Bulma | File

Last Updated : 10 Aug, 2022

Bulma is a free, open-source CSS framework based on Flexbox. It is component rich, compatible, and well documented. It is highly responsive in nature. It uses classes to implement its design.  

The file element is used to upload custom file input. The β€˜file’ component comprises of several sub-elements that we have to add exclusively to design our content well. These elements are listed below.

    • file-label - It is the actual interactive and clickable part of the file element.
      • file-input - It is the native file input, hidden for styling purposes.
      • file-cta - It is the upload call-to-action.
        • file-icon- It is  an optional upload icon
        • file-label the "Choose a file…" text
      • file-name - a container for the chosen file name.

    Example 1: This example shows simple Bulma file input.

    Output:

    πŸ‘ Image
    Simple File Input

    Example 2: This example shows file input with selected file name wrapped in a box container.

    Output:

    πŸ‘ Image
    File input with selected file name

    Example 3: This example shows file input and selected file name  with different alignment.

    Output:

    πŸ‘ Image
    Different alignment file input

    Example 4: This example shows different color file inputs.

    Output:

    πŸ‘ Image
    Different color file inputs

    Example 5: This example shows different sizes file input.

    Output:

    πŸ‘ Image
    Different sizes file input

    Example 6: This example shows boxed-block input

    Output:

    πŸ‘ Image
    boxed-block input
Comment
Article Tags: