2019-09-08 15:28:32 +00:00
|
|
|
# RowContainer
|
|
|
|
|
2019-11-21 13:28:00 +00:00
|
|
|
Container for Row component
|
|
|
|
|
|
|
|
### Usage
|
2019-09-08 15:28:32 +00:00
|
|
|
|
|
|
|
```js
|
2022-07-22 19:01:25 +00:00
|
|
|
import RowContainer from "@docspace/components/row-container";
|
2019-09-08 15:28:32 +00:00
|
|
|
```
|
|
|
|
|
2019-11-21 13:28:00 +00:00
|
|
|
```jsx
|
2019-09-10 08:50:37 +00:00
|
|
|
<RowContainer manualHeight="500px">{children}</RowContainer>
|
2019-09-08 15:28:32 +00:00
|
|
|
```
|
|
|
|
|
2019-11-21 13:28:00 +00:00
|
|
|
### Properties
|
2019-09-08 15:28:32 +00:00
|
|
|
|
2019-12-03 12:54:46 +00:00
|
|
|
| Props | Type | Required | Values | Default | Description |
|
|
|
|
| ---------------- | :------------: | :------: | :----: | :------------: | --------------------------------------------------------------- |
|
|
|
|
| `className` | `string` | - | - | - | Accepts class |
|
|
|
|
| `id` | `string` | - | - | `rowContainer` | Accepts id |
|
|
|
|
| `itemHeight` | `number` | - | - | `50` | Height of one Row element. Required for scroll to work properly |
|
|
|
|
| `manualHeight` | `string` | - | - | - | Allows you to set fixed block height for Row |
|
|
|
|
| `style` | `obj`, `array` | - | - | - | Accepts css style |
|
|
|
|
| `useReactWindow` | `bool` | - | - | `true` | Use react-window for efficiently rendering large lists |
|