UNPKG

@airplane/views

Version:

A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.

42 lines (41 loc) 1.07 kB
import { CSSObject, MantineNumberSize } from "@mantine/core"; import { PrismProps } from "@mantine/prism"; import { CommonLayoutProps } from "../../components/layout/layout.types"; import { CommonStylingProps } from "../../components/styling.types"; export type Props = { /** The code content. */ children: string; /** * The code language. */ language: PrismProps["language"] | "mysql" | "pgsql" | "none"; /** * Whether to render line numbers. * @default false */ withLineNumbers?: boolean; /** * Border radius of the code block. */ radius?: MantineNumberSize; /** * Theme of the code. * @default light */ theme?: "dark" | "light"; /** * Copy button label. * @default "Copy code" */ copyLabel?: string; /** * If true, a button will be rendered to copy code to clipboard. * @default true */ copy?: boolean; /** * CSS style overrides. * @deprecated */ sx?: CSSObject; } & CommonLayoutProps & CommonStylingProps;