Shortam
Shortam is a simple and light front-end shortcode framework built on vanilla JavaScript and CSS.
This project uses shortcode.js (https://github.com/nicinabox/shortcode.js) for building shortcodes.
Note - Shortam is currently under developement (don’t use it now in production)
Note - Shortam uses Roboto Google font for it’s components. Be sure to include it in your project.
Features
- Very Light
- Currently in developement
- More components coming soon
- Custom shortcodes support
- And much more
Documentation
Alerts
Use this code to add alerts -
[alert id="test" width="70" type="green" text="test"]
Customisations -
- width=”70” // Width of alert in percentage (in this case 70%)
- type=”green” // Theme of alert (Supported - green/blue/red/orange)
- text=”test” // Text to be shown inside alert box (can be html)
- id=”test” // Adds id to the object for extra usage (optional, leave blank for null)
Buttons
Use this code to add buttons
[bt id="test" type="green" href="http://abc.com" text="Download" target="_blank"]
Customisations -
- type=”green” // Theme of button (Supported - green/blue/red/orange)
- href=”http://abc.com” // Target of link (Use #! for null)
- text=”test” // Text to be shown inside button (can be html)
- target=”_blank” // Target of link (Supported - all html target values)
- id=”test” // Adds id to the object for extra usage (optional, leave blank for null)
Upcoming Features
- Bootstrap 4 support
- More custom elements
- Much more
License
MIT License