diff --git a/packages/showcase/desktop/src/renderer/pages/CardsAdvancedPage.tsx b/packages/showcase/desktop/src/renderer/pages/CardsAdvancedPage.tsx index 40c48fa..440a1b1 100644 --- a/packages/showcase/desktop/src/renderer/pages/CardsAdvancedPage.tsx +++ b/packages/showcase/desktop/src/renderer/pages/CardsAdvancedPage.tsx @@ -1,7 +1,6 @@ -import { createElement, useState, type CSSProperties } from 'react'; +import { createElement, type CSSProperties } from 'react'; import { DTCard, - DTStaggerContainer, DTFeatureLegend, } from '@dangerousthings/react'; import type { DTFeatureItem } from '@dangerousthings/react'; @@ -62,8 +61,6 @@ const aestheticFeatures: DTFeatureItem[] = [ ]; export function CardsAdvancedPage() { - const [staggerKey, setStaggerKey] = useState(0); - return ( <>

Advanced Cards

@@ -72,7 +69,7 @@ export function CardsAdvancedPage() {
{modes.map(mode => ( - +
mode-{mode}
))} @@ -81,6 +78,23 @@ export function CardsAdvancedPage() {
+
+
+ +
One line
+
+ +
+ Multiple lines of content to demonstrate that the shorter card stretches to match this card's height. +
+
+ +
Two lines of content here.
+
+
+ +
+
{[0, 25, 50, 75, 100].map((val, i) => ( @@ -99,15 +113,15 @@ export function CardsAdvancedPage() { { label: 'BUNDLE', mode: 'other' as DTVariant, img: 'https://images.unsplash.com/photo-1518770660439-4636190af475?w=400&h=400&fit=crop' }, { label: 'NFC', mode: 'normal' as DTVariant, img: 'https://images.unsplash.com/photo-1550751827-4bd374c3f58b?w=400&h=400&fit=crop' }, ].map(badge => ( - -
+ {badge.label}}> +
- {badge.label}
))}
- +
@@ -149,27 +163,6 @@ export function CardsAdvancedPage() {
-
- - {Array.from({ length: 10 }, (_, i) => ( - - {null} - - ))} - - - -
); }