🚀 Ship faster with premium components 🚀
Search documentation v1.0.0

Contact Tiles

Display key contact methods with icons

Source Report Issue

Use the ContactTiles component to display key contact methods — like email, phone, or support — in a clean, visual format using icons and labels.

Preview
Unlock code
How to use the ContactTiles component in Astro
<ContactTiles
email={{ text: 'ui@webcore.dev' }}
phone={{ text: '+1 23 456 7890' }}
support={{ text: '<a href="#">Contact support</a>' }}
/>

You can use three types of props for three types of contact methods. Each object accepts the following properties:

Alignments

You can configure the default center alignment of your tiles using the alignment prop:

Left-aligned
Right-aligned
Unlock code
How to configure alignment
<ContactTiles
email={{ text: 'ui@webcore.dev' }}
phone={{ text: '+1 23 456 7890' }}
support={{ text: '<a href="#">Contact support</a>' }}
alignment="left"
/>
Unlock code
How to configure alignment
<ContactTiles
email={{ text: 'ui@webcore.dev' }}
phone={{ text: '+1 23 456 7890' }}
support={{ text: '<a href="#">Contact support</a>' }}
alignment="right"
/>

Different Layouts

The component is compatible with the GridWithIcons component, meaning you can pass other GridWithIcons props to this component. For example, change your layout using the iconWithBackground and secondary props:

Unlock code
How to customize layout
<ContactTiles
email={{ text: 'ui@webcore.dev' }}
phone={{ text: '+1 23 456 7890' }}
support={{ text: '<a href="#">Contact support</a>' }}
alignment="right"
iconWithBackground={true}
secondary={true}
/>

API

Unlock code
Component API reference
type ContactItem = {
icon?: string
title?: string
text: string
}
type ContactTilesProps = {
email?: ContactItem
phone?: ContactItem
support?: ContactItem
} & Omit<GridWithIconsProps, 'items'>
Please see the documentation of the GridWithIcons component for the GridWithIconsProps type.
PropPurpose
email Sets a contact tile for email.
phone Sets a contact tile for phone.
support Sets a contact tile for support.