CodeSnippet
Selectable, wrapping code with an optional host-owned action.
Preview
npx @flood-md/[email protected] initUse CodeSnippet
CodeSnippet is a named export of @flood-md/react. Connect the package once, then import what you use.
Design notes
- CodeSnippet escapes code content and uses the semantic system monospace font stack.
- The host implements copy behavior, failure handling and feedback. No clipboard or network API runs inside the component.
- Code text defaults to LTR independently of parent layout. codeDirection can be ltr/rtl/auto; native dir still controls the wrapper and action layout.
API reference
View TypeScript source