1.2.2 • Published 2 years ago
learn-fm-sdk v1.2.2
Learn.fm SDK
Getting started
- Install the plugin:
npm install learn-fm-sdk
- Add the plugin into your app:
import LearnFMSDK from "learn-fm-sdk"
import "learn-fm-sdk/dist/index.css"
- Use LearnFMSDK component
<LearnFMSDK
courseId="course_id"
tenantId="tenant_id"
userId="user_id"
/>
Props
accentColor
- Type:
string
- Default:
"#00e432"
The accent color of the plugin (heading widget, icon widget, buttons)
courseId
- Type:
string
The id course
longreadButtonPosition
- Type:
TLongreadButtonPosition
- Default:
"top"
Positioning the button before or after the article. Allowed values: "top"
(before), "bottom"
(after)
primaryColor
- Type:
string
- Default:
"#2d2d32"
The primary color of the plugin (background color widget and modal)
scrollbarColor
- Type:
string
- Default:
"#1c1b20"
Color for the modal scrollbar
tenantId
- Type:
string
The id your platform
textColor
- Type:
string
- Default:
"#ffffff"
Color for the text and the cross icon
userId
- Type:
string
The id of the user of your platform who will pass