Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.