liber-salti
Version:
Saltí - Liber Design System
32 lines (31 loc) • 1.07 kB
TypeScript
/// <reference types="react" />
import { StyledComponentBase } from 'styled-components';
export interface TextListUnorderedProps {
/**
* What goes inside the list (list items or another lists)
*/
children: React.ReactNode;
}
export interface TextListOrderedProps {
/**
* What goes inside the list (list items or another lists)
*/
children: React.ReactNode;
}
export interface TextListItemProps {
/**
* What goes inside the list item (list items or another lists)
*/
children: React.ReactNode;
}
export declare type TextListOrdered = StyledComponentBase<'ol', any, TextListOrderedProps, never>;
export declare type TextListUnordered = StyledComponentBase<'ul', any, TextListUnorderedProps, never>;
export declare type TextListItem = StyledComponentBase<'li', any, TextListItemProps, never>;
export declare type TextList = {
Unordered: TextListOrdered;
Ordered: TextListUnordered;
Item: TextListItem;
Ul: TextListOrdered;
Ol: TextListUnordered;
Li: TextListItem;
};