Skip to content

ZigGreen/react-vk-login

 
 

Repository files navigation

React Vk Login

A Component React for Vk Login

Getting Started

git clone https://github.com/ZigGreen/react-vk-login.git && cd react-vk-login
npm install react react-dom react-vk-login --save

Development

npm start

How to use

Basic

import React from 'react';
import ReactDOM from 'react-dom';
import VkLogin from 'react-vk-login';

const responseVk = (response) => {
  console.log(response);
}

ReactDOM.render(
  <VkLogin
    appId="1088597931155576"
    autoLoad={true}
    fields="name,email,picture"
    onClick={componentClicked}
    callback={responseVk} />,
  document.getElementById('demo')
);

Parameters

params value default value
appId string Required
size string small - medium - metro
scope string public_profile, email, user_birthday
fields string name,email,picture
callback function resultVkLogin
autoLoad boolean false
xfbml boolean false
reAuthenticate boolean false
textButton string Login with Vk
cssClass string kep-login-facebook kep-login-facebook-[button-size]
redirectUri string window.location.href (mobile-only)
version string 2.3
icon string element
language string en_US
onClick function Initial click on the component

About

A Component React for Vk Login

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 72.2%
  • CSS 18.5%
  • HTML 9.3%