mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-22 10:33:22 +00:00
9e0aabc8bd
* add space to expandable, reduce shadow * temp animation * little better anims * v1 stagger * add opacity-0 back * fix opacity on header * overlay fix opacity * fix chevron shrink * style summary arrow * search button add transition * style hint custom anchor colors * Commit * image border * fix text color hints * fix code & code within hints * annotation pass * clean up * setup before iconwork * simplify hint animations * allow heading sizes in hints, fix global outline * fix arrows pagefooter * increase hitarea arrow * style ol ul * v1 checkbox * toc motion speed * link legibility, move header links to end, anchor underline * table pass for busy content * better table defaults * v1 table side scroller * only show on threshold * format
19 lines
562 B
TypeScript
19 lines
562 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', '[&>li]:pl-[.25ch]', 'space-y-2', style]}
|
|
/>
|
|
);
|
|
}
|