Tinyrack

PreviewCard

Reveal an interactive preview after a short hover or focus delay.

Reveal an interactive preview after a short hover or focus delay.

Contract

AxisContract
Layer sizelayerSize applies to the complete preview layer. Its default width is fixed at TRMeasurements.overlayWidthSm, while height follows content until the safe viewport clamps it.

Install

Add the package, then import its public library.

flutter pub add tinyrack_ui
import 'package:tinyrack_ui/tinyrack_ui.dart';

Playground

Usage

import 'package:material_ui/material_ui.dart';
import 'package:tinyrack_ui/tinyrack_ui.dart';

const TRPreviewCard(
  trigger: Text('Rack alpha'),
  content: Text('Healthy'),
)

API

Layer properties

PropType / defaultPurpose
layerSizeTRLayerSize · fixed overlayWidthSm / content heightSizes the complete layer instead of only its content panel.