@telegram-auth/react
▸ LoginButton(props
): Element
A React component that renders a Telegram login button.
Name | Type | Description |
---|---|---|
props |
LoginButtonProps |
The props to pass to the component. |
Element
A React component that renders the Telegram login button.
See
https://core.telegram.org/widgets/login
▸ createScript(options
): HTMLScriptElement
It creates a script tag with the right attributes to load the Telegram widget
Name | Type | Description |
---|---|---|
options |
CreateScriptOptions |
The options to create the script. |
A script element
See