1.0.18 • Published 8 months 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
8 months ago
1.0.17
11 months ago
1.0.16
12 months ago
1.0.15
12 months ago
1.0.14
12 months ago
1.0.13
12 months ago
1.0.12
12 months ago
1.0.11
12 months ago
1.0.10
12 months ago
1.0.9
12 months ago
1.0.8
12 months ago
1.0.7
12 months ago
1.0.6
12 months ago
1.0.5
12 months ago
1.0.4
12 months ago
1.0.3
12 months ago
1.0.2
12 months ago
1.0.1
12 months ago
1.0.0
12 months ago