Components
Inline Action
A block of content with a floating contextual AI action.
If people bring so much courage to this world the world has to kill them to break them, so of course it kills them.
Installation
npx shadcn@latest add https://ai-native-ui.com/r/inline-action.jsonUsage
import { InlineAction } from "@/components/ui/inline-action";
<InlineAction label="Improve Writing" onAction={() => rewrite()}>
{selectedText}
</InlineAction>;Props
| Prop | Type | Description |
|---|---|---|
children | ReactNode | The content the action applies to. |
label | string | Action button label. |
icon | ReactNode | Leading icon. |
onAction | () => void | Fires when the action is clicked. |