Socket
Book a DemoInstallSign in
Socket

@twa-dev/mark42

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twa-dev/mark42

Mark42 is a simple lightweight tree-shakable UI library for [Telegram Web Apps (TWA)](https://core.telegram.org/bots/webapps).

latest
Source
npmnpm
Version
0.0.38
Version published
Maintainers
2
Created
Source

Mark42

Mark42 is a simple lightweight tree-shakable UI library for Telegram Web Apps (TWA).

Installation

npm i @twa-dev/mark42

Documentation

Welcome to our Storybook.

Motivation

Telegram supports different themes and color schemes. It can be dark or light. On MacOS, iOS and iPadOS messenger follows apple design guidelines, on other platforms (Desktop, Web, Android) it looks like a material interface.

If you want to build a TWA that looks like a native part of Telegram, you have to follow same principles. Mark42 helps you with that. Each component supports different themes and color schemes out of the box. Therefore, you can focus on logic of your application and Mark42 will make it fancy.

Usage example

import { InitialsAvatar } from '@twa-dev/mark42';

<InitialsAvatar
  userId={12345}
  userName="Artur Stambultsian"
  theme="apple"
  className="MyAvatar"
  style={{ marginRight: 10 }}
/>

Keywords

@twa-dev

FAQs

Package last updated on 19 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts