ed-components ·
![npm version](https://img.shields.io/npm/v/@ed-components/ed-components.svg?style=flat)
A set of web-components for education.
Components
Not ready for production yet. These components are used for research.
Wrapper components:
<ed-pb>
: Handle a set of questions and interactive answers.<ed-micro>
: Allows wrapping content inside a minimal dialog
element to easily chunk information and maximize memorization.
Single answer components.
Styling
Via CSS custom properties (variables) inspired by bootstrap.
--ed-primary
--ed-success
--ed-danger
User interface layout
Ideas comes from
Edx
licensed CC-BY-SA.
![The learner view of a problem from edx CC-BY-SA](https://github.com/ed-components/ed-components/raw/HEAD/images/EdxAnatomyOfExercise.png)
- Problem text.
- Response field.
- Rendered answer.
- Submit.
- Attempts.
- Save.
- Reset.
- Show Answer.
- Feedback.
![Feedbacks view in edx](https://github.com/ed-components/ed-components/raw/HEAD/images/EdxAnatomyOfExercise2.png)
Development
Programming guide
- Element class names are on the form
EdXyzElement
and have a static method
define
that allow to register element in the custom registry with default
name ed-xyz
. See webcomponents.guide. - The documenation of components follows Custom Element manifest JSDoc.
All components are tested from the components
directory.
To execute all tests npm run test
, in watch mode: npm run test:watch
.
To execute test for a single component, pass the
test group
to wtr:
npm run test -- --group ed-survey
TODO