Tile | UI components (BETA)

APPLICABLE PRODUCTS
  • Sales Hub
    • Enterprise
  • Service Hub
    • Enterprise

The Tile component renders a square tile that can contain other components. Use this component to create groups of related components.

tile-component-example

import { Tile, Text } from '@hubspot/ui-extensions'; const Extension = () => { return ( <> <Tile> <Text>This is the default tile. It has a small amount of left padding</Text> </Tile> <Tile compact={true}> <Text>This is a compact tile. It reduces the amount of padding within.</Text> </Tile> <Tile flush={true}> <Text>This is a flush tile. It has no left padding</Text> </Tile> </> ); };
Prop Type Description
compact Boolean When set to true, reduces the amount of padding in the tile. Default is false.
flush Boolean When set to true, removes left and right padding from the tile contents. Default is false.

Variants

Using the flush prop, you can remove left and right padding from the tile contents.

  • flush={false} (default)
    design-guidelines-tile-styles_1
  • flush={true}
    design-guidelines-tile-styles_2

Usage examples

  • Group a form and its inputs together.
  • Group a bulleted text summary and statistics components together.
 

Was this article helpful?
This form is used for documentation feedback only. Learn how to get help with HubSpot.