Skip to content

Commit

Permalink
feat(sidenavdetails): spread additional props to underlying container (
Browse files Browse the repository at this point in the history
…#11692)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
tay1orjones and kodiakhq[bot] authored Jul 7, 2022
1 parent 352e46d commit 2b4ffd2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/react/src/components/UIShell/SideNavDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@ import PropTypes from 'prop-types';
import React from 'react';
import { usePrefix } from '../../internal/usePrefix';

const SideNavDetails = ({ children, className: customClassName, title }) => {
const SideNavDetails = ({
children,
className: customClassName,
title,
...rest
}) => {
const prefix = usePrefix();
const className = cx(`${prefix}--side-nav__details`, customClassName);
return (
<div className={className}>
<div className={className} {...rest}>
<h2 className={`${prefix}--side-nav__title`} title={title}>
{title}
</h2>
Expand Down

0 comments on commit 2b4ffd2

Please sign in to comment.