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

package.src.layouts.Split.Split.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/layouts/Split/split';
import { css } from '@patternfly/react-styles';

export interface SplitProps extends React.HTMLProps {
  /** Adds space between children. */
  hasGutter?: boolean;
  /** Allows children to wrap */
  isWrappable?: boolean;
  /** content rendered inside the Split layout */
  children?: React.ReactNode;
  /** additional classes added to the Split layout */
  className?: string;
  /** Sets the base component to render. defaults to div */
  component?: React.ReactNode;
}

export const Split: React.FunctionComponent = ({
  hasGutter = false,
  isWrappable = false,
  className = '',
  children = null,
  component = 'div',
  ...props
}: SplitProps) => {
  const Component = component as any;
  return (
    
      {children}
    
  );
};
Split.displayName = 'Split';




© 2015 - 2024 Weber Informatics LLC | Privacy Policy