Revel
GitHub
GitHub
  • Overview

    • Getting started
    • FAQ
    • Release notes
  • Foundations

    • Meet the standard
    • Accessibility
    • Internationalization
    • Information hierarchy
    • Speed
  • Design

    • Visual principles
    • Colors
    • Space
    • Icons
    • Typography
  • Design tokens
  • Style helpers
  • Content

    • Express your ideas
    • Actionable language
    • Inclusive and accessible language
    • Alternative text
    • Grammar and mechanics
      • Basics
      • Capitalization
      • Dates and units of measurement
      • Punctuation
  • Components

    • Alert
    • Avatar
    • Badge
    • Button
    • Button group
    • Checkbox
    • Date Input
      • dates
      • datetimes
      • ranges
      • date range
    • Field group
    • File dropzone
    • File upload
    • Flex
    • Grid
    • Icon
    • Image
    • Input
    • Input errors
    • Loader
    • Modal
    • Month picker
    • Multistep
      • multistep
      • step
    • Pagination
    • Popper
    • Radio
    • Repeater
    • Select
    • Tabs
    • Tile
    • Toast
    • Toggle
  • Directives

    • Click outside
    • Tooltip

Tile

A flexible content container. Use r-tile as the container and r-tile-content for each section.

Usage

import { RTile, RTileContent } from '@rebilly/revel';

<r-tile title="Title">
  <r-tile-content>Primary</r-tile-content>
  <r-tile-content type="secondary">Secondary</r-tile-content>
</r-tile>;

Examples

Basic tile

Use the title prop and the actions slot on r-tile to render a header. Place one or more r-tile-content children in the default slot.

r-tile-content is primary by default. Use type="secondary" for a sunken section. An optional title on r-tile-content renders as a section heading.

tile-with-all-slots.vue

Inset

Use inset to change title and content padding. The value applies is-inset-* and maps to a space token (5 is --r-space-5).

tile-inset.vue

Plain tile

Use type="plain" to remove the tile border and radius. The title gets a bottom border.

tile-plain.vue

Description tile

Use type="description" for the same flush layout as plain, without a title bottom border. Content section dividers stay.

tile-description.vue

RTile

Props

NameTypeDefaultDescription
typeTileType'default'

Visual variant of the tile

titlestringundefined

Title text displayed in the tile header

insetTileInset'5'

Padding scale for the title and content. Maps to `--r-space-*`.

Slots

NameDescription
actions

Header actions next to the title

default

Tile content items

RTileContent

Props

NameTypeDefaultDescription
typeTileContentType'primary'

Visual variant of the tile content

titlestringundefined

Title text displayed in the content header

Slots

NameDescription
default

Tile content

Edit this page
Last Updated: 9/2/26, 8:01 PM
Contributors: Alberto Gualis, John Hannagan, Weetbix, mehicalen, Cesar Level
Prev
Tabs
Next
Toast