1.0.18 • Published 1 year ago
wordkito-widgets v1.0.18
��# wordkito-widgets
Would you like to place Wordkito tests on your website?
You can use the library you are looking at!
But if you're motivated to do it yourself, here's a link to an example of how the library works underneath: https://codesandbox.io/s/wordkito-test-widget-example-mgeeg8?file=/src/App.tsx
Installation
npm install wordkito-widgets
Import
import { WordkitoWidget } from "wordkito-widgets"
Use
import { WordkitoWidget } from "wordkito-widgets"
function App(){
const deckId = "<id_of_your_deck>" // You can find it in the URL when you enter a single deck or under the "share" button.
return (
<div>
<WordkitoWidget
deckId={deckId}
/>
</div>
)
}
If you want to use the test results.
import { useWidgetTest, WordkitoWidget } from "wordkito-widgets"
function App(){
const deckId = "<id_of_your_deck>" // You can find it in the URL when you enter a single deck or under the "Share" button.
return (
<div>
<WordkitoWidget
deckId={deckId}
onFinished={({result}) => console.log(result)}
/>
</div>
)
}
Customize apperance
import { useWidgetTest, WordkitoWidget } from "wordkito-widgets"
function App(){
const deckId = "<id_of_your_deck>"
return (
<div>
<WordkitoWidget
deckId={deckId}
/>
</div>
)
}
1.0.18
1 year ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago