Code

import { Code } from '@hanzo/ui/chat'

No examples yet.

Types

export interface CodeProps extends Omit<ComponentProps<typeof YStack>, 'children'> {
children?: ReactNode
/** Shown in the label bar. */
language?: string
/** Raw text for the copy control. Falls back to `children` when it is a string. */
value?: string
/** Extra controls in the label bar, before copy. */
actions?: ReactNode
}

Exports

Codetype CodeProps