mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 01:53:26 +00:00
70c6c9df42
* Start * Try webframe * Lint and format * Move to package * Continue * Implement card and cleanup contexts * Start code blocks * Start rendering image * Continue with card * Start stack * Start text * Start modal * Format * Continue * Fix TS errors * Cleanup * Make markdown work with server components * Format * Add visual test * Lint and format * Fix lifecycle * Implement textinput * Divider * Remove console logs * Remove listSpaceIntegrationsBlocks
12 lines
335 B
TypeScript
12 lines
335 B
TypeScript
import { ContentKitBox } from '@gitbook/api';
|
|
|
|
import { ContentKitServerElementProps } from './types';
|
|
|
|
export function ElementBox(
|
|
props: React.PropsWithChildren<ContentKitServerElementProps<ContentKitBox>>,
|
|
) {
|
|
const { element, children } = props;
|
|
|
|
return <div style={{ flexGrow: element.grow ?? 0 }}>{children}</div>;
|
|
}
|