Styling

The same parts, in any look.

tuckaway ships no CSS. Each part takes your own classes, and sets only the inline styles swiping depends on. Here's one list in five styles.

Site#

The look of this site. The actions sit a shade off the row, so they read as one surface.

Design review
Send invoices
Book team lunch

Glass#

A translucent fill with backdrop-blur on the list. Actions only fill the gap the row opens, so they don't show through.

Design review
Send invoices
Book team lunch

Neobrutalist#

Thick borders and a hard offset shadow. The shadow goes on the list, as rows clip their own overflow.

Design review
Send invoices
Book team lunch

Terminal#

Monospace and sharp corners. An action's children can be anything.

> review-design
> send --invoices
> book lunch

Soft#

Large radii and a wide, diffuse shadow, one per row. A rounded Tuckaway.Row clips its actions to match.

Design review
Send invoices
Book team lunch

Style by state#

Tuckaway.Row has a data-phase, and Tuckaway.Actions has a data-armed when letting go would commit.

<Tuckaway.Row className="data-[phase=dragging]:shadow-lg">
	<Tuckaway.Actions side="end" className="group">
		<Tuckaway.Action className="bg-neutral-400 group-data-armed:bg-red-500" />
	</Tuckaway.Actions>
</Tuckaway.Row>

Good to know#