All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.src.components.CodeBlock.CodeBlockCode.tsx Maven / Gradle / Ivy

Go to download

This library provides a set of common React components for use with the PatternFly reference implementation.

The newest version!
import * as React from 'react';
import styles from '@patternfly/react-styles/css/components/CodeBlock/code-block';
import { css } from '@patternfly/react-styles';

export interface CodeBlockCodeProps extends React.HTMLProps {
  /** Code rendered inside the code block */
  children?: React.ReactNode;
  /** Additional classes passed to the code block pre wrapper */
  className?: string;
  /** Additional classes passed to the code block code */
  codeClassName?: string;
}

export const CodeBlockCode: React.FunctionComponent = ({
  children = null,
  className,
  codeClassName,
  ...props
}: CodeBlockCodeProps) => (
  
    {children}
  
); CodeBlockCode.displayName = 'CodeBlockCode';




© 2015 - 2024 Weber Informatics LLC | Privacy Policy