LongLinkLongLink
ExploreDocumentationPricingGitHub (opens in a new tab)Sign In
SolutionsViewsPlatform
Skip to content

Views

Introduction

Hooks

useApiuseFormuseConfirmuseTableReact hooks

Layout

BoxCardDialogFrameGridMenuStackTabs

Action

ButtonsDropdownPaginationLink

Display

AvatarBadgeCurrencyDataGridEmptyFileTypeFileViewerHeadingIconsImageProgressSeparatorTableTextTimestamp

Form

FormCheckboxFiltersInputRadioGroupSelectComboboxSliderSwitchTextarea

Charts

AreaChartBarChartLineChartPieChartRadarChartRadialBarChartSankeyChartLegend

Maps

MapMapControlsMapGeoJSONStreetMapMarkerMapRouteMapClusterMapArcMap

useConfirm

longlink docs component Hooks
export default function DeleteItem({ params }) {  const [deleted, setDeleted] = useState(false);  const confirmation = useConfirm();  const form = useForm(`/api/items/${params.item}`, {    method: 'DELETE',    onSuccess: () => setDeleted(true)  });
if (deleted) return <Link href="/items">Back to items</Link>;
return ( <> <Button onClick={() => confirmation.show({ title: 'Delete item?', description: 'This cannot be undone.', actionLabel: 'Delete', actionVariant: 'destructive', onAction: async () => { await form.submit(); } })}> Delete </Button> {confirmation.element} </> );}
PreviousNext
Last updated: Oct 2, 2026Edit this page (opens in a new tab)

On this page

  • Introduction
LongLinkLongLink
DocumentationExplorePricingSign In

LongLink LLC - 2026 - v0.10.0

ContactImpressumTermsPrivacy