@neo4j-ndl/react
Version:
React implementation of Neo4j Design System
44 lines (28 loc) • 900 B
Markdown
Import: `import { ToolCall } from '@neo4j-ndl/react/ai'`
| Prop | Type | Required | Default | Description |
|------|------|----------|---------|-------------|
| `children` | `ReactNode` | | | The content of the suggestion |
| `isDone` | `boolean` | | `false` | Whether the AI is done with using the tool |
| `ref` | `Ref<HTMLSpanElement>` | | | A ref to apply to the root element. |
```tsx
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
import { ToolCall } from '@neo4j-ndl/react/ai';
const Component = () => {
return <ToolCall>list_import_jobs</ToolCall>;
};
export default Component;
```
```tsx
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
import { ToolCall } from '@neo4j-ndl/react/ai';
const Component = () => {
return <ToolCall isDone>list_import_jobs</ToolCall>;
};
export default Component;
```