1.0.17-alpha.12 • Published 4 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-depsUsage
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
4 years ago
1.0.17-alpha.11
4 years ago
1.0.17-alpha.12
4 years ago
1.0.17-alpha.10
4 years ago
1.0.17
4 years ago
1.0.17-alpha.8
4 years ago
1.0.16
4 years ago
1.0.17-alpha.7
4 years ago
1.0.17-alpha.6
4 years ago
1.0.17-alpha.5
4 years ago
1.0.17-alpha.4
4 years ago
1.0.17-alpha.3
4 years ago
1.0.17-alpha.2
4 years ago
1.0.17-alpha.1
4 years ago
1.0.15
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago