Skip to main content

Find button

Prop showFind — adapter chrome, default follows enableFind.

Guide

When to use it

Add a Find button to the toolbar so users can open the find bar by click, not only with ⌘/Ctrl+F.

How it works

Pure chrome — it renders the toolbar button that opens the find bar, and follows enableFind.

Gotchas

  • No-op without enableFind — chrome never turns on the behaviour, it only exposes it.
  • The ⌘/Ctrl+F shortcut works whether or not the button is shown.

Live example

Example source
import React from 'react'
import { BstTableMui } from '@bloomskill/table-mui'
import type { BstTableColumn } from '@bloomskill/table-engine'
import '@bloomskill/table-engine/styles.css'
type Row = { id: string; name: string; team: string; role: string; score: number }
const seed: Row[] = [
{ id: '1', name: 'Ada Lovelace', team: 'Platform', role: 'Engineer', score: 92 },
{ id: '2', name: 'Alan Turing', team: 'Research', role: 'Scientist', score: 88 },
{ id: '3', name: 'Grace Hopper', team: 'Platform', role: 'Engineer', score: 95 },
{ id: '4', name: 'Katherine J.', team: 'Research', role: 'Analyst', score: 90 },
{ id: '5', name: 'Edsger Dijkstra', team: 'Platform', role: 'Architect', score: 84 },
]
const columns: BstTableColumn<Row>[] = [
{ id: 'name', accessorKey: 'name', header: 'Name' },
{ id: 'team', accessorKey: 'team', header: 'Team' },
{ id: 'role', accessorKey: 'role', header: 'Role' },
{ id: 'score', accessorKey: 'score', header: 'Score', sortFn: 'basic' },
]
export default function App() {
return (
<BstTableMui data={seed} columns={columns} getRowId={(r) => r.id}
enableFind showFind />
)
}
Loading live example…

Overview

Layershow* (chrome, resolved in the adapter)
Typeboolean
Defaultfollows enableFind
Maps toadapter toolbar Find button that opens the in-grid find bar; a no-op without enableFind (chrome follows behaviour). Like showUndoRedo, not a settings-sheet entry
Status✅ done
Sincev0.42.0

Enable it

<BstTableMui
data={rows}
columns={columns}
enableFind // chrome is a no-op without its behaviour flag
showFind
/>

Swap BstTableMui for BstTableShadcn (and the CSS import) for the shadcn skin — same props.

Behavior & interactions

  • Requires enableFind to be on — this flag is a no-op otherwise.