mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-01 12:02:05 +00:00
docs(desktop): tighten RowButton doc comment
This commit is contained in:
parent
c2fb651c5e
commit
57dd86f247
1 changed files with 4 additions and 11 deletions
|
|
@ -1,17 +1,10 @@
|
|||
import * as React from 'react'
|
||||
|
||||
/**
|
||||
* A full-row / full-region click target rendered as a real `<button>`.
|
||||
*
|
||||
* Several surfaces intentionally make an entire row (or cell) the click target
|
||||
* while hosting nested layout and controls inside it — sidebar rows, overlay /
|
||||
* panel list rows, settings + onboarding provider rows, the artifacts cell.
|
||||
* This primitive bakes in the shared semantics (`type="button"` plus a stable
|
||||
* `data-slot`) WITHOUT imposing any visual styling, so each row keeps its own
|
||||
* layout classes and nothing changes visually.
|
||||
*
|
||||
* Use `RowButton` for these row/region targets; reach for `Button`
|
||||
* (`components/ui/button.tsx`) for ordinary compact actions.
|
||||
* A full-row / region click target rendered as a real `<button>`: bakes in
|
||||
* `type="button"` + a stable `data-slot`, imposes no styling (callers keep their
|
||||
* own layout classes, so nothing changes visually). Use for row/region targets;
|
||||
* use `Button` for ordinary compact actions.
|
||||
*/
|
||||
function RowButton({ className, type = 'button', ...props }: React.ComponentProps<'button'>) {
|
||||
return <button className={className} data-slot="row-button" type={type} {...props} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue