mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-18 00:25:07 +00:00
aab7d0bd7a
* first stab at bullet points * setup theming, custom opacities, use of brand UI colors * color key change * delete brand * setup initial defaults * Add opacity parameter to primary color * style TOC * styling pass header, footer, hints, toc, trademark * table pass * style pass, typo, quote, tabs, search, theme, toc
19 lines
549 B
TypeScript
19 lines
549 B
TypeScript
import { DocumentBlockListTasks, DocumentBlockListUnordered } from '@gitbook/api';
|
|
|
|
import { BlockProps } from './Block';
|
|
import { Blocks } from './Blocks';
|
|
|
|
export function ListTasks(props: BlockProps<DocumentBlockListTasks>) {
|
|
const { block, style, ancestorBlocks, ...contextProps } = props;
|
|
|
|
return (
|
|
<Blocks
|
|
{...contextProps}
|
|
tag="ul"
|
|
nodes={block.nodes}
|
|
ancestorBlocks={[...ancestorBlocks, block]}
|
|
style={['list-none', 'ps-4', 'space-y-2', style]}
|
|
/>
|
|
);
|
|
}
|