How to use the @patternfly/react-styles/css/components/Accordion/accordion.modifiers function in @patternfly/react-styles

To help you get started, we’ve selected a few @patternfly/react-styles examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Accordion / AccordionContent.tsx View on Github external
{({ ContentContainer }) => {
      const Container = component || ContentContainer;
      return (
        
          <div>{children}</div>
        
      );
    }}
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Accordion / AccordionContent.js View on Github external
const AccordionContent = ({ className, children, id, isHidden, isFixed, 'aria-label': ariaLabel, ...props }) =&gt; (
  <dd aria-label="{ariaLabel}" hidden="{isHidden}" id="{id}">
    <div>{children}</div>
  </dd>
);
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Accordion / AccordionContent.js View on Github external
const AccordionContent = ({ className, children, id, isHidden, isFixed, 'aria-label': ariaLabel, ...props }) =&gt; (
  <dd aria-label="{ariaLabel}" hidden="{isHidden}" id="{id}">
    <div>{children}</div>
  </dd>
);
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Accordion / AccordionToggle.js View on Github external
const AccordionToggle = ({ className, id, isExpanded, children, ...props }) =&gt; (
  <dt>
    <h3>
      <button aria-expanded="{isExpanded}" id="{id}">
        <span>{children}</span>
        
      </button>
    </h3>
  </dt>
);
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Accordion / Accordion.tsx View on Github external
export const Accordion: React.FunctionComponent = ({
  children = null,
  className = '',
  'aria-label': ariaLabel = '',
  headingLevel = 'h3',
  asDefinitionList = true,
  noBoxShadow = false,
  ...props
}: AccordionProps) =&gt; {
  const AccordionList: any = asDefinitionList ? 'dl' : 'div';
  return (
    
      
        {children}
      
    
  );
};
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Accordion / AccordionContent.tsx View on Github external
{({ ContentContainer }) =&gt; {
      const Container = component || ContentContainer;
      return (
        
          <div>{children}</div>
        
      );
    }}
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Accordion / AccordionToggle.tsx View on Github external
{({ ToggleContainer }) =&gt; {
      const Container = component || ToggleContainer;
      return (
        
          <button aria-expanded="{isExpanded}" id="{id}">
            <span>{children}</span>
            
          </button>
        
      );
    }}