Diff Viewer
Unified and split code diff with +/- stats.
@kineticui/ui
button.tsx+3−2
| 1 | −export function Button({ children }) { | |
| 1 | +export function Button({ children, loading }) { | |
| 2 | 2 | return ( |
| 3 | − <button className="btn"> | |
| 3 | + <button className="btn" disabled={loading}> | |
| 4 | + {loading ? <Spinner /> : null} | |
| 4 | 5 | {children} |
| 5 | 6 | </button> |
| 6 | 7 | ); |
| 7 | 8 | } |
Installation
Copies the source into your project so you can edit every line.
$ npx @kineticui/cli add diff-viewer
Exports
DiffViewer