Action Tile
ActionTile is a tile-shaped entry point to an action or a destination: an entity badge, a title and description, and a trailing arrow.
import { RiArrowRightLine, RiBankCardLine } from '@remixicon/react';
import { ActionTile } from '@/components/ui/wideset/action-tile/ActionTile';
<ActionTile
title="Billing details"
description="Update your card and invoice address"
entity={RiBankCardLine}
icon={RiArrowRightLine}
onClick={openBilling}
/>Installation
pnpm dlx wideset add action-tile
Copies the component and any Wideset components it uses into your project.
Examples
Variants
border is the default and suits tiles on a plain page background. filled drops the outline for a soft fill, which keeps a list of tiles quiet inside a card or a panel that already has a border. Use one variant per list.
import { RiArrowRightLine, RiBankCardLine } from '@remixicon/react';
import { ActionTile } from '@/components/ui/wideset/action-tile/ActionTile';
const variants = ['border', 'filled'] as const;
export default function ActionTileVariants() {
return (
<div className="gap-ws-9 grid w-full grid-cols-[repeat(auto-fit,minmax(16rem,1fr))]">
{variants.map((variant) => (
<ActionTile
key={variant}
variant={variant}
title="Billing details"
description="Update your card and invoice address"
entity={RiBankCardLine}
icon={RiArrowRightLine}
href="#billing"
/>
))}
</div>
);
}Icons
The entity badge says what the tile is about; the trailing arrow says the tile goes somewhere. Both are decoration and hidden from screen readers, so the title has to make sense alone. Drop the arrow on a tile that does something in place instead of navigating.
import {
RiArrowRightLine,
RiBankCardLine,
RiNotification3Line,
RiTeamLine,
} from '@remixicon/react';
import { ActionTile } from '@/components/ui/wideset/action-tile/ActionTile';
export default function ActionTileIcons() {
return (
<div className="gap-ws-5 flex w-[22rem] max-w-full flex-col">
<ActionTile
title="Billing details"
description="Update your card and invoice address"
entity={RiBankCardLine}
icon={RiArrowRightLine}
href="#billing"
/>
<ActionTile
title="Invite your team"
description="Add people by email or share a link"
entity={RiTeamLine}
onClick={() => {}}
/>
<ActionTile
title="Notifications"
description="Choose what we email you about"
icon={RiArrowRightLine}
href="#notifications"
/>
<ActionTile title="Turn on reminders" entity={RiNotification3Line} onClick={() => {}} />
</div>
);
}States
Hover, press and focus are live. A disabled tile loses its arrow and leaves the tab order: a button gets native disabled, a link gets aria-disabled and stops navigating. Say nearby why the tile is unavailable.
import { RiArrowRightLine, RiBankCardLine } from '@remixicon/react';
import { ActionTile } from '@/components/ui/wideset/action-tile/ActionTile';
const variants = ['border', 'filled'] as const;
export default function ActionTileStates() {
return (
<div className="gap-ws-9 grid w-full grid-cols-[repeat(auto-fit,minmax(16rem,1fr))]">
{variants.map((variant) => (
<div key={variant} className="gap-ws-5 flex flex-col">
<ActionTile
variant={variant}
title="Billing details"
description="Update your card and invoice address"
entity={RiBankCardLine}
icon={RiArrowRightLine}
onClick={() => {}}
/>
<ActionTile
variant={variant}
title="Billing details"
description="Only owners can change billing"
entity={RiBankCardLine}
icon={RiArrowRightLine}
onClick={() => {}}
disabled
/>
</div>
))}
</div>
);
}API reference
| Name | Description | Default |
|---|---|---|
asChild | Renders the tile styling onto the child element via Radix Slot (e.g. a router `<Link>`). boolean | — |
className | Additional CSS classes merged with the rendered element. string | — |
defaultMotion | Turns the component's built-in animations on or off. When omitted, inherits the value from the nearest `MotionProvider`. boolean | true |
description | The description text of the tile. string | — |
disabled | Disables the tile. Native `disabled` on `<button>`, `aria-disabled` otherwise. boolean | false |
entity | Leading entity badge icon. RemixiconComponentType | — |
href | Renders an `<a>` instead of a `<button>` and navigates on activation. string | — |
icon | Trailing arrow. Decorative: the whole tile is the control. Hidden when disabled. RemixiconComponentType | — |
ref | Ref to the rendered element. Ref<HTMLElement> | — |
title | The title text of the tile. string | — |
type | Native button type used for form behavior. Setting `type` alone renders a `<button>`, so `type="submit"` works without an `onClick`. 'button''submit''reset' | — |
variant | 'border''filled' | 'border' |
Accessibility
- The whole tile is the control; badge and arrow are decorative and hidden from screen readers, so the title must make sense alone.
- Do not put buttons or links inside a tile; it is already one control.
import { RiArrowRightLine, RiBankCardLine } from '@remixicon/react';
import { ActionTile } from '@/components/ui/wideset/action-tile/ActionTile';
<ActionTile
title="Billing details"
description="Update your card and invoice address"
entity={RiBankCardLine}
icon={RiArrowRightLine}
onClick={openBilling}
/>