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

package.src.components.Sidebar.Sidebar.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 { css } from '@patternfly/react-styles';
import styles from '@patternfly/react-styles/css/components/Sidebar/sidebar';

export interface SidebarProps extends React.HTMLProps {
  children?: React.ReactNode;
  /** Indicates the direction of the layout. Default orientation is stack on small screens, and split on medium screens and above. */
  orientation?: 'stack' | 'split';
  /** Indicates that the panel is displayed to the right of the content when the oritentation is split. */
  isPanelRight?: boolean;
  /** Adds space between the panel and content. */
  hasGutter?: boolean;
  /** Removes the background color. */
  hasNoBackground?: boolean;
  /** Adds a border between the panel and content. */
  hasBorder?: boolean;
}

export const Sidebar: React.FunctionComponent = ({
  className,
  children,
  orientation,
  isPanelRight = false,
  hasGutter,
  hasNoBackground,
  hasBorder,
  ...props
}: SidebarProps) => (
  
{children}
); Sidebar.displayName = 'Sidebar';




© 2015 - 2024 Weber Informatics LLC | Privacy Policy