UNPKG

@carbon/react

Version:

React components for the Carbon Design System

26 lines (25 loc) 791 B
/** * Copyright IBM Corp. 2016, 2023 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; export interface SideNavIconProps { /** * Provide a single icon as the child to `SideNavIcon` to render in the * container */ children: React.ReactNode; /** * Provide an optional class to be applied to the containing node */ className?: string; /** * Specify whether the icon should be placed in a smaller bounding box * Since the 'small' prop is not provided, we make it optional and set a default value to `false`. */ small?: boolean; } declare const SideNavIcon: React.FC<SideNavIconProps>; export default SideNavIcon;