1.0.17-alpha.12 • Published 3 years ago
byjus-searchbar-widget v1.0.17-alpha.12
byjus-searchbar-widget
widget for byjus qna searchbar
Install
npm install --save byjus-searchbar-widget --legacy-peer-deps
Usage
import React, { Component } from 'react'
import { useEffect, useState } from 'react';
import { SearchbarComponent } from 'byjus-searchbar-widget'
import 'byjus-searchbar-widget/dist/index.css'
import 'byjus-searchbar-widget/dist/cropper.css'
class Example extends Component {
render() {
var [routeUrl, setRouteUrl] = useState(null);
useEffect(()=>{
if(routeUrl){
console.log(routeUrl)
}
}, [routeUrl])
return <SearchbarComponent
apiEndpoint = 'API_ENDPOINT' //String
userToken = 'USER TOKEN' //String
origin = 'ORIGIN' //String
authKey = 'AUTH KEY' //String
setRouteUrl = {el => setRouteUrl(el)} //Output url for redirection
/>
}
}
License
MIT © arjunramesan01
1.0.17-alpha.9
3 years ago
1.0.17-alpha.11
3 years ago
1.0.17-alpha.12
3 years ago
1.0.17-alpha.10
3 years ago
1.0.17
3 years ago
1.0.17-alpha.8
3 years ago
1.0.16
3 years ago
1.0.17-alpha.7
3 years ago
1.0.17-alpha.6
3 years ago
1.0.17-alpha.5
3 years ago
1.0.17-alpha.4
3 years ago
1.0.17-alpha.3
3 years ago
1.0.17-alpha.2
3 years ago
1.0.17-alpha.1
3 years ago
1.0.15
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago