2.3.0 • Published 4 years ago

@volusion/element-components v2.3.0

Weekly downloads
68
License
MIT
Repository
-
Last release
4 years ago

Components for the Volusion Element platform

The components in this repository are injected by default into all Element blocks. This lets users configure their components globally across all theme pages.

Button

Button component allows for both a Primary and Secondary button, in either a button or link tag. Both config specs are the same.

Button config spec

Prop NameOptionsDefault ValueSite Designer EnabledDescription
classNamestring''falseallows for passing classes to component to extend current classes
buttonStyle'Primary' or 'Secondary''primary'falseUse primaryButtonStyles or secondaryButtonStyles
hrefstring''falsepassing href as a prop will cause the component to render as an anchor tag
textColorstring'#333'truebutton text color
hoverTextColorstring'#333'truebutton text hover color
backgroundColorstring'#333'truebutton background color
hoverBackgroundColorstring'#333'truebutton background hover color
borderColorstring'#333'truebutton border color
hoverBorderColorstring'#333'truebutton border color
fontWeight'300', '400', '500', '600', '700', '800', '900''700'truebutton font weight
textTransform'none', 'capitalize', 'lowercase', 'uppercase'nonetruebutton text transform
borderThickness'basic', 'thin', 'thick', 'none'basictruebutton border thickness
size'small', 'medium', 'large', 'block'mediumtruebutton size
rounded'none', 'small', 'medium', 'large','pill'nonetruebutton round corners
growOnHovertrue or falsefalsetruebutton round corners

Development

npm install
npm run watch

Open up the component's index.html in any browser.

To add a new component, simply drop a new folder in the src directory with the desired name, and use the existing components as a guide.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Deployment

npm run release

Contributing

We're very excited that you're interested in contributing! At present, we are already accepting issues and PR. We do already have a Code of Conduct in place.

Code of Conduct

Though we are not accepting contributions for this repo at the moment, we still have a Code of Conduct in place.

License

© 2018 onwards by Volusion MIT License

2.3.0

4 years ago

2.2.0

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.1.0-alpha.0

4 years ago

1.0.6

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.1

5 years ago