1.0.13 • Published 30 days ago

@riaskov/vk-signin-widget v1.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
30 days ago

VK Signin Widget for React

Unofficial VK signin button component for React 18

Usage

import { VkSignInButton } from "@riaskov/vk-signin-widget"

<VkSignInButton
    appId={12345678}
    redirectURL={"https://example.com"}>
</VkSignInButton>

Docs

Params

ParamTypeDescription
appId (required)numberApp ID from VK ID Management Console
redirectURL (required)stringOne of Trusted redirect URLs from VK ID Management Console
classNamestringOne or more space-separated classes (available: "btn-secondary", "rounded-1", "rounded-2", "rounded-3"), just names, no dots before classes!
labelstringButton's label
onClickBeforeLogin(e)FunctionCallback to execute before redirecting to id.vk.com
statestringRandom data for passing to redirectURL

"className" param and UI

classNameUI
Without any className passedimage
btn-secondaryimage
rounded-1image
rounded-2image
rounded-3image

Acknowledgements

VK logo images received from public VK ID Docs; all rights on VK assets and trademark belong to VK

1.0.11

30 days ago

1.0.13

30 days ago

1.0.12

30 days ago

1.0.10

1 month ago

1.0.9

1 month ago

1.0.8

1 month ago

1.0.7

1 month ago

1.0.6

1 month ago

1.0.5

1 month ago

1.0.4

1 month ago

1.0.3

1 month ago

1.0.2

1 month ago

1.0.1

1 month ago

1.0.0

1 month ago