Skip to content

Commit

Permalink
docs: recorded Containedlistitem usage depreciation (carbon-design-…
Browse files Browse the repository at this point in the history
…system#16640)

* docs: recorded containedlistitem usage depreciation

* docs: moved the message below
  • Loading branch information
Gururajj77 committed Jun 11, 2024
1 parent 7e57d8e commit 534710f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/react/src/components/ContainedList/ContainedList.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ render inline to the Contained List title, please see the
also remain persistent under the title, so that it remains visible on scroll,
when there are many list items passed in.


```js
export const WithPersistentSearch = () => {
const [searchTerm, setSearchTerm] = useState('');
Expand Down Expand Up @@ -139,6 +140,10 @@ export const WithPersistentSearch = () => {
};
```

`ContainedList.ContainedListItem` is deprecated, use
`import { ContainedListItem } from '@carbon/react`
import instead.

<Canvas>
<Story of={ContainedListStories.WithPersistentSearch} />
</Canvas>
Expand Down

0 comments on commit 534710f

Please sign in to comment.