-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvtex.sticky-layout.d.ts
42 lines (41 loc) · 1.26 KB
/
vtex.sticky-layout.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { Block } from '.'
declare global {
namespace JSX {
interface IntrinsicElements {
/**
* Provides layout structures to help build elements that should have a fixed position.
*
* @see {@link https://developers.vtex.com/docs/apps/vtex.sticky-layout}
*/
'sticky-layout': Block<
| {
/**
* Indicates where the component should stick.
*
* @default undefined
*/
position?: 'top' | 'bottom'
/**
* Indicates the distance in pixels from the position chosen in the `position` prop.
*
* @default 0
*/
verticalSpacing?: number
}
| {
/**
* The `sticky-layout.stack-container` block can be used to orchestrate multiple `sticky-layouts` to have a stack behavior instead of one being on top of the other.
*/
$type: 'stack-container'
/**
* Indicates where the component should stick.
* *It overrides the `position` of its children `sticky-layout`.*
*
* @default undefined
*/
position?: 'top' | 'bottom'
}
>
}
}
}