UNPKG

@eccenca/gui-elements

Version:

GUI elements based on other libraries, usable in React application, written in Typescript.

29 lines (28 loc) 1.16 kB
import React from "react"; export interface HtmlContentBlockProps extends React.HTMLAttributes<HTMLDivElement> { /** * Content block uses smaller font size. */ small?: boolean; /** * To prevent overflow, an otherwise unbreakable string of characters — like a long word or URL — may be broken at any point if there are no otherwise-acceptable break points in the line. */ linebreakForced?: boolean; /** * No automatic line breaks are inserted. */ linebreakPrevented?: boolean; /** * Sub elements like code blocks are displayed without own scrollbars. * This option may infer with `linebreakForced` and `linebreakPrevented`. */ noScrollbarsOnChildren?: boolean; /** currently not supported */ large?: boolean; /** currently not supported */ muted?: boolean; /** currently not supported */ disabled?: boolean; } export declare const HtmlContentBlock: ({ className, children, small, large, muted, disabled, linebreakForced, linebreakPrevented, noScrollbarsOnChildren, ...otherProps }: HtmlContentBlockProps) => React.JSX.Element; export default HtmlContentBlock;