Front-end starter kit
Alexander was built in two distinct levels, a base level that includes browser consistency styles and standard accessibility features, and an implementation level, broken out into elements and components. Include just the base level in your project and or include all for a jump start.
Install Alexander from GitHub using npm with:
npm install samhermes/alexander#1.0.6Components are not included with Alexander by default. They can be imported as needed and customized to fit your project.
Creates an interactive accordion component, with the proper attributes applied to make it accessible.
How to use:
import { Accordions } from 'alexander';
Accordions();Parameters:
selector: A string for customizing the accordion selector. Default:.accordion
Files:
src/js/components/accordion.jssrc/sass/components/_accordion.scss
Creates an interactive tabs component, with the proper attributes applied to make it accessible.
How to use:
import { Tabs } from 'alexander';
Tabs();Parameters:
selector: A string for customizing the tabs selector. Default:.tabs
Files:
src/js/components/tabs.jssrc/sass/components/_tabs.scss
Adds custom video controls to HTML video elements, with the proper attributes applied to make it accessible.
How to use:
import { Videos } from 'alexander';
Videos();Parameters:
selector: A string for customizing the video selector. Default:.video
Files:
src/js/components/video.jssrc/sass/components/_videos.scss