Giter Club home page Giter Club logo

store-components's Introduction

πŸ“’ Disclaimer Don't fork this project. Use it, contribute to it or open issues through Store Discussion to help us evolve it.

VTEX Store Components

All Contributors

VTEX Store Components is a collection of components that can be used to create/extend others VTEX apps.

Usage

The Store Components collection uses the store builder with the blocks architecture. Please refer to our Builder documentation to learn more about the store builder.

To use this app, you must import it as dependency of your project in the manifest.json file.

  "dependencies": {
    "vtex.store-components": "3.x"
  }

Then, you can start adding components to your store theme app.

Styles API

The Store Components collection provides some CSS classes as an API for style customization.

To use this CSS API, you must add the styles builder and create an app styling CSS file.

  1. Add the styles builder to your manifest.json:
  "builders": {
    "styles": "2.x"
  }
  1. Create a file called vtex.store-components.css inside the styles/css folder. Add your custom styles:
.container {
  margin-top: 10px;
}

Components

For more information, check the documentation of all components of the Store Components collection.

⚠️ Warning

The following blocks have been deprecated: Animation, Categories Highlights, Collection Badges, Container, Discount Badge, Gradient Collapse, Greeting, Slider. Despite this, support for them is still granted.

Creating a new component

To start your development, create a new folder on react/components. That's where your source code will be stored. Also create a new js file on /react, this file should be used to expose your component, like:

Project structure

Inside your react/components/<component_name> you should have:

  • index.js
  • README.md
  • [Optional] components/
  • [Optional] constants/
  • [Optional] utils/
  • [Optional] queries/
  • [Optional] mutations/
  • [Optional] styles.css

Next, inside of react/ folder you need to export your component, such as:

import ProductPrice from './components/ProductPrice/index'

export default ProductPrice

Also, all dependencies needed should be inserted inside the react/package.json.

Troubleshooting

You can check if others are passing through similar issues here. Also feel free to open issues or contribute with pull requests.

Contributing

Check it out how to contribute with this project.

Tests

To execute our tests go to react/ folder and run yarn test

Travis CI

Build Status

Contributors

Thanks goes to these wonderful people (emoji key):


Dan

πŸ’»

Jean Nussenzveig

πŸ’»

Lucas AntΓ΄nio Yamamoto Borges

πŸ’»

Sebastian Sanchez Vega

πŸ’»

Erislandio

πŸ’»

Beatriz Miranda

πŸ’»

Jayendra

πŸ’»

Pierre Grimaud

πŸ“–

Igor Poubel

πŸ’»

Hugo Costa

πŸ’»

Matheus Araujo

πŸ“–

Luisa Correa

πŸ’»

pmarignan

πŸ’»

Rodrigo Muniz

πŸ’»

Ovi

πŸ’»

LucasCastroJussi

πŸ’»

razvanudream

πŸ’»

This project follows the all-contributors specification. Contributions of any kind welcome!

Upcoming documentation:

store-components's People

Contributors

jgfidelis avatar lbebber avatar lucasecdb avatar victorhmp avatar klynger avatar klzns avatar kaisermann avatar estacioneto avatar salesfelipe avatar guerreirobeatriz avatar juanalmeida12 avatar vitoria avatar rerissondaniel avatar lariciamota avatar samuraiexx avatar mariana-caetano avatar theomoura avatar arthursampaio avatar paul0vinicius avatar augustolazaro avatar thayannevls avatar matheusps avatar lucis avatar claudivanfilho avatar allcontributors[bot] avatar gugabribeiro avatar sesave avatar igorbrasileiro avatar iago1501 avatar gustavoma avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.