Files
react-test/docs/data/system/positions/positions.md

28 lines
1.3 KiB
Markdown
Raw Normal View History

2025-12-12 14:26:25 +09:00
# Positions
<p class="description">Use these shorthand utilities for quickly configuring the position of an element.</p>
## z-index
{{"demo": "ZIndex.js", "defaultCodeOpen": false, "bg": true}}
```jsx
<Box sx={{ zIndex: 'tooltip' }}>
<Box sx={{ zIndex: 'modal' }}>
```
## API
```js
import { positions } from '@mui/system';
```
| Import name | Prop | CSS property | Theme key |
| :---------- | :--------- | :----------- | :------------------------------------------------------------------------- |
| `position` | `position` | `position` | none |
| `zIndex` | `zIndex` | `z-index` | [`zIndex`](/material-ui/customization/default-theme/?expand-path=$.zIndex) |
| `top` | `top` | `top` | none |
| `right` | `right` | `right` | none |
| `bottom` | `bottom` | `bottom` | none |
| `left` | `left` | `left` | none |