Skip to content

Commit

Permalink
chore: renamed itemsHeader to itemsControl
Browse files Browse the repository at this point in the history
  • Loading branch information
Manzura Zakirova committed Sep 10, 2024
1 parent 7e23170 commit 6a85062
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pages/side-navigation/app-layout.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const items: SideNavigationProps.Item[] = [
{ type: 'link', text: 'Documentation', href: '#', external: true, externalIconAriaLabel: 'Opens in a new tab' },
];

const itemsHeader = (
const itemsControl = (
<Select
options={[
{ value: 'option1', label: 'Option 1' },
Expand Down Expand Up @@ -137,7 +137,7 @@ export default function SideNavigationPage() {
},
}}
items={items}
itemsHeader={itemsHeader}
itemsControl={itemsControl}
/>
}
content={
Expand Down
6 changes: 3 additions & 3 deletions src/side-navigation/interfaces.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ export interface SideNavigationProps extends BaseComponentProps {
header?: SideNavigationProps.Header;

/**
* Slot to insert a component below the header and above the items.
* Using existing Cloudscape component is recommended.
* The region below the header and above the items to control filtering of menu items
* Use existing Cloudscape components such as Select or MultiSelect.
**/
itemsHeader?: React.ReactNode;
itemsControl?: React.ReactNode;

/**
* Specifies the `href` of the currently active link.
Expand Down

0 comments on commit 6a85062

Please sign in to comment.