-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvtex.store-header.d.ts
72 lines (71 loc) · 2 KB
/
vtex.store-header.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import { Block } from '.'
declare global {
namespace JSX {
interface IntrinsicElements {
/**
* Defines the Header layout through `header-row` blocks.
*
* @see {@link https://developers.vtex.com/docs/apps/vtex.store-header}
*/
'header-layout': Block<{
$type: 'desktop' | 'mobile'
}>
/**
* Create Header lines according to your store needs.
*
* @see {@link https://developers.vtex.com/docs/apps/vtex.store-header}
*/
'header-row': Block<{
/**
* CSS property that controls the vertical stacking order of elements for overlapping.
*
* @default 0
*/
zIndex?: number
/**
* Whether the Header margin should be fixed on the layout (`true`) or not (`false`).
*
* @default false
*/
sticky?: boolean
/**
* Whether the Header should take the full width of the screen or not.
*
* @default true
*/
fullWidth?: boolean
/**
* Whether the row will use the base color (`false`) or the inverted base color (`true`) as defined in `styles.json`.
*
* @default false
*/
inverted?: boolean
}>
/**
* Adds a `1px` margin to a Header row.
*
* @see {@link https://developers.vtex.com/docs/apps/vtex.store-header}
*/
'header-border': Block<{
/**
* Whether the Header margin should be fixed in the layout or not.
*
* @default false
*/
sticky?: boolean
}>
/**
* Centralizes its children blocks in a Header row.
*
* @see {@link https://developers.vtex.com/docs/apps/vtex.store-header}
*/
'header-force-center': Block
/**
* Adds spacing between blocks throughout a Header row.
*
* @see {@link https://developers.vtex.com/docs/apps/vtex.store-header}
*/
'header-spacer': Block
}
}
}