Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kirill-dev-pro/solid-telegram-auth-button
SolidJS Telegram Auth Button
https://github.com/kirill-dev-pro/solid-telegram-auth-button
Last synced: 2 days ago
JSON representation
SolidJS Telegram Auth Button
- Host: GitHub
- URL: https://github.com/kirill-dev-pro/solid-telegram-auth-button
- Owner: kirill-dev-pro
- Created: 2022-12-26T15:51:37.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-26T17:15:09.000Z (almost 2 years ago)
- Last Synced: 2024-10-06T00:09:08.965Z (about 1 month ago)
- Language: TypeScript
- Size: 41 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# solid-telegram-auth-button
Unstyled headless solid-js component
To install:
```bash
bun add solid-telegram-auth-button
```To use:
```tsx
import { TelegramLoginButton } from 'solid-telegram-auth-button'
// Basic use
console.log('got telegram user', user)}
botNickname='Sample_bot'
/>
// you can pass additional props to customize element
console.log('got telegram user', user)}
botNickname='Sample_bot'
class='bg-green-400 text-left'
loadingElement='Telegram auth script is loading'
>
Login with Telegram!```
This project use `supreme` code style and bootstraped with just `bunx eslint-config-supreme init`
This project was created using `bun init` in bun v0.4.0. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.