Skip to content

ETitle

ETitle is a UI element that provides a fixed label for each section of nav items in the sidebar. The difference between this component and ESidebarTitle is that the ETitle doesn't hide the label while the sidebar is in compact mode.

Import

jsx
import ETitle from "@components/UI/ETitle";

Usage

jsx
const NavExample = ({isHovered}) => {

  return (
    <ETitle>
        UI Elements
    </ETitle>
     <EListGroup title="Components">
         <EListItem>
            Button
         </EListItem>
          <EListItem>
            Badge
         </EListItem>
     </EListGroup>
  );
};

export default SidebarTitleExample;

Props

PropTypeDefaultNote
tagString"h1"Defines wrapper tag
uppercaseBoolean-Uppercase the text
classNameString-Overrides or extends the component's styles.

Children

The ETitle component provides a default slot that enable you to customize the content.

ChildrenDescription
✔️Component’s content.

COPYRIGHT