SelectAllButton

Selects every row of the list up to limit; it hides once the selection holds limit ids, 250 by default.

Installation

pnpm dlx shadcn@latest add @chelone/select-all-button

Selects every row of the list up to limit; it hides once the selection holds limit ids, 250 by default.

Props

PropTypeDefaultDescription
asChildboolean—
labelReactNode—
limitnumber—The most rows to select.
onClick() => void—
size"default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null—
variant"link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null—