File Group

Upload a product image

  • Accepted formats: JPG, PNG
  • Maximum upload limit: 5 MB

Upload a product image

  • Accepted formats: JPG, PNG
  • Maximum upload limit: 5 MB

File Group

On this page

A file upload field with a preview section and place for metadata.

Technical Details

  • The component is an "extended" file upload field only. With your custom functionality, you can extend it to be an actual user-friendly component.
  • If the .file-group__preview has a background-image, it will automatically display the remove button and hide the blank slate icon. For this, it uses :has.
  • It also utilizes @container for breaking on mobile.

Documentation

Learn about Spruce CSS through our extensive documentation.

Components

Explore our extensive UI library built with Spruce CSS.

Blog

Read about front-end development and concepts of Spruce CSS.

Find us on GitHub

Did you find a bug? Have an idea or a question? Please open an issue to help us develop the project.