opencode/packages/tui/test/fixture/plugin/slot-string/tui.tsx
Anmol 3de8f3a89f
fix(tui): contain plugin slots and routes that render bare text (#58144)
Co-authored-by: Daniel Smolsky <dannysmo@gmail.com>
2026-10-24 15:24:44 -04:00

10 lines
399 B
TypeScript

import { Plugin } from "@opencode/plugin/tui"
// A slot that returns bare text next to a well-formed one (anomalyco/opencode#58112).
export default Plugin.define({
id: "fixture.slot-string",
setup(context) {
context.ui.slot({ append: "home.footer", render: () => "hello from a plugin" })
context.ui.slot({ append: "home.footer", render: () => <text>Plugin still alive</text> })
},
})