1.0.17-alpha.12 • Published 2 years ago

byjus-searchbar-widget v1.0.17-alpha.12

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

byjus-searchbar-widget

widget for byjus qna searchbar

NPM JavaScript Style Guide

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

2 years ago

1.0.17-alpha.11

2 years ago

1.0.17-alpha.12

2 years ago

1.0.17-alpha.10

2 years ago

1.0.17

2 years ago

1.0.17-alpha.8

2 years ago

1.0.16

2 years ago

1.0.17-alpha.7

2 years ago

1.0.17-alpha.6

2 years ago

1.0.17-alpha.5

2 years ago

1.0.17-alpha.4

2 years ago

1.0.17-alpha.3

2 years ago

1.0.17-alpha.2

2 years ago

1.0.17-alpha.1

2 years ago

1.0.15

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

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