website refactor
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React, { ReactNode, ElementType, ComponentPropsWithoutRef } from 'react';
|
||||
import { BoxProps } from './Box';
|
||||
import { Box, BoxProps } from './Box';
|
||||
|
||||
type Spacing = 0 | 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | 64 | 72 | 80 | 96;
|
||||
|
||||
@@ -194,5 +194,5 @@ export function Text<T extends ElementType = 'span'>({
|
||||
...style
|
||||
};
|
||||
|
||||
return <Tag className={classes} style={combinedStyle} {...props}>{children}</Tag>;
|
||||
return <Box as={Tag} className={classes} style={combinedStyle} {...props}>{children}</Box>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user