Skip to content

Bulk actions

A bar that appears when rows are selected, the count, actions for the selection, and a way out, with select-all.

CSS + mian.js JSON Markdown Registry item

Selectable table

InvoiceCustomerAmount
INV-2041Halden & Co€1,240.00
INV-2040Orbital GmbH€380.50
INV-2039Kestrel Ltd€4,900.00
INV-2038Marrow SRL€96.00

Installation

Everything ships in one stylesheet and one small script. There is nothing to import per component.

<link rel="stylesheet" href="https://mian.ro/dist/mian.css">
<script src="https://mian.ro/dist/mian.js" defer></script>

Prefer to own the files? /r/bulk-actions.json is a registry item with this component's CSS and example markup, ready to copy into your project with any tool that reads the open registry-item format.

Class reference

Class / attributeDescription
mn-bulkThe scope: wraps the table (or list) and the bar. Add data-mn-bulk.
mn-bulkbarThe bar; hidden until something is selected.
data-mn-bulk-allOn the header checkbox: selects every row; shows indeterminate for some.
data-mn-bulk-countWhere the number of selected rows is written.

Accessibility

  • The count is announced (the bar is role="status" for its first line) when the selection changes.
  • The header checkbox is labelled “Select all” and reports mixed selection as indeterminate.
  • Destructive bulk actions name the number (“Delete 3”) and use a confirm dialog or an undo toast.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page