TgTaps Docs
  • TgTaps Documentation
    • Community
  • Blocks
    • Basic
      • Container
      • Block
      • Image
      • Copy button
      • HTML
      • Onboarding
    • Payments
      • Subscriptions list
    • Friends (referral system)
      • Invite friend button
      • Leaderboard
      • Claim friends bonus button
      • Friends list
    • Pages
      • Buy page button
      • Buy page card
      • Access page from date
    • Clicker game
      • Cards
      • Level reachment
      • Level progress
      • Click button
      • Energy progress
      • Farm button
    • Tasks
    • FAQ
    • TON
      • Connect TON wallet button
      • Send TON button
    • System blocks
      • Buy page dialog
    • Quizes
      • Quiz
      • Quiz completion
    • Daily bonus
  • Roulette
  • FEATURES
    • Rates
    • Navigation
    • Placeholders
    • Referrals statistics export
    • Custom value
    • Broadcast sending
    • Bot ownership transfer and token change
    • Head scripts
    • Pages
      • Paid pages
    • Levels
    • Payments
      • How to sell points?
  • Mini App Settings
    • Telegram messages
    • Referral system
    • Fonts
    • System icons
    • Analytics
  • Integrations
    • API keys
    • API methods
    • iFrame integrations
    • How to display UI fields from your API?
  • FAQ
    • How to fix "primary page is not configured"?
    • How to create gradient color or background?
    • How pages background works?
    • How to insert YouTube video in app?
    • How to add Play button to Telegram Bot?
  • Changelog
    • Changelog
Powered by GitBook
On this page
  • Content
  • Inner blocks alignment
  • Horizontal alignment and distribution
  • Vertical alignment and distribution
  • Navigation (links and pages)
  • Fixation on the screen
  • Image cover
  • Blur
  • Full screen sizing
  1. Blocks
  2. Basic

Container

PreviousBasicNextBlock

Last updated 1 month ago

The Container block is the cornerstone of all applications built on our No Code Platform for creating Telegram Mini Apps. It serves as the primary building block for structuring and organizing your app's content. By grouping and aligning other blocks within a Container, you can create complex and responsive layouts that enhance user experience.

Content

Inner blocks alignment

You can align inner blocks vertically or horizontally:

Horizontal alignment and distribution

When you align blocks horizontally, inner blocks are placed from the left to the right each after each:

In this case, you can distribute blocks (to the left, in the center, between the container, etc.):

Moreover, if inner blocks are different in size, you can move them between top and bottom corner of the container:

Vertical alignment and distribution

When blocks are aligned vertically, they are placed from the top to the bottom by the left side:

How to align vertical placed blocks by the center?

To align vertically aligned blocks by the center, you need to add inner blocks and place blocks into them with the following structure:

In this case, blocks will be displayed like here:

Navigation (links and pages)

You can attach any link to the container:

Fixation on the screen

The container can be fixed to the top or bottom side of the screen. This is needed to achieve “floating” effect for toolbar or bottom menu:

To make the container floating, select isFixed:

Image cover

You can upload an image to the background of your container:

Also, you need to select an image placement when the image is too big:

Keep in mind that containers do not have the own "size". Therefore, other blocks needs to be placed in the container. In the example we have an empty transparent block in the container:

Blur

Containers can be blurred:

Blur is used for floating components to make them more visible under other blocks:

Full screen sizing

You can make the height of the container to fix 100% of the screen:

If inner blocks take more space that the screen height, the height of the container will be increased.


Or you can .

Something unclear in docs or you know how to improve article? We will answer you and then promise to improve the article within 3 days.

insert the link to another page to navigate between pages
Message us in community!
Inner blocks alignment
Horizontal alignment and distribution
Vertical alignment and distribution
How to align vertical placed blocks by the center?
Fixation on the screen
Navigation (links or pages)
Image cover
Blur
Full screen sizing
Horizontal alignment of inner blocks of the container
The structure of the following blocks
Move to center
Move to the left
Place blocks between the container
Place block around the container
Center
Top
Bottom