Docs
Default-list
Default List
Displays a list of items with an optional header and a footer. (Not Scrollable)
Users' email
User - 1
Email: user1@example.com
User - 2
Email: user2@example.com
End of list
Usage
Example Code
1import DefaultList from "inc-design-system/defaultList";
Example Code
1<DefaultList>
2 <div>Content 1</div>
3 <div>Content 2</div>
4 <div>Content 3</div>
5</DefaultList>
Props
DefaultList
Prop | Type | Description | Default |
---|---|---|---|
Header | string | This will be at the top of the list. | - |
Footer | string | This will be at the bottom of the list. | - |
Children | React.ReactNode | Child passed to this component, should be multiple children as it is a list. | - |