-
Notifications
You must be signed in to change notification settings - Fork 4k
/
types.ts
45 lines (43 loc) · 1.21 KB
/
types.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
/**
* External dependencies
*/
// eslint-disable-next-line no-restricted-imports
import type { SeparatorProps } from '@ariakit/react';
/**
* Internal dependencies
*/
import type { SpaceInput } from '../utils/space';
export type DividerProps = Omit<
SeparatorProps,
'children' | 'unstable_system' | 'orientation' | 'as' | 'render'
> & {
/**
* Adjusts all margins on the inline dimension.
*
* Can either be a number (which will act as a multiplier to the library's grid system base of 4px),
* or a literal CSS value string.
*/
margin?: SpaceInput;
/**
* Adjusts the inline-end margin.
*
* Can either be a number (which will act as a multiplier to the library's grid system base of 4px),
* or a literal CSS value string.
*/
marginEnd?: SpaceInput;
/**
* Adjusts the inline-start margin.
*
* Can either be a number (which will act as a multiplier to the library's grid system base of 4px),
* or a literal CSS value string.
*/
marginStart?: SpaceInput;
/**
* Divider's orientation. When using inside a flex container, you may need
* to make sure the divider is `stretch` aligned in order for it to be
* visible.
*
* @default 'horizontal'
*/
orientation?: SeparatorProps[ 'orientation' ];
};