-
Notifications
You must be signed in to change notification settings - Fork 58
/
types.ts
27 lines (24 loc) · 900 Bytes
/
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
import { ComponentType, HTMLProps } from 'react';
import {
DesignableComponents,
DesignableComponentsProps,
StylableProps,
DesignableProps,
} from '@bodiless/fclasses';
/**
* @category Component
*/
export interface SectionComponents extends DesignableComponents {
Wrapper: ComponentType<StylableProps>;
TitleWrapper: ComponentType<StylableProps>;
Title: ComponentType<StylableProps>;
DescriptionWrapper: ComponentType<StylableProps>;
Description: ComponentType<StylableProps>;
LinkWrapper: ComponentType<StylableProps>;
Link: ComponentType<StylableProps>;
ContentWrapper: ComponentType<StylableProps>;
Content: ComponentType<StylableProps>;
}
export type SectionProps = DesignableProps<SectionComponents> & HTMLProps<HTMLElement>;
// eslint-disable-next-line max-len
export type SectionBaseProps = DesignableComponentsProps<SectionComponents> & HTMLProps<HTMLElement>;