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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy