This repository was archived by the owner on Sep 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +13
-5
lines changed Expand file tree Collapse file tree 4 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @grand-hawk/ui-components" ,
3
- "version" : " 0.2.2 " ,
3
+ "version" : " 0.3.0 " ,
4
4
"keywords" : [
5
5
" roblox-ts" ,
6
6
" react" ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export interface CheckboxProps extends ButtonProps {
19
19
}
20
20
21
21
export function Checkbox ( componentProps : PropsWithChildren < CheckboxProps > ) {
22
- const props = componentProps ;
22
+ const props = { ... componentProps } ;
23
23
24
24
const value = props . Value ;
25
25
props . Value = undefined ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export interface SheetProps extends BoxProps {
13
13
export function Sheet ( componentProps : PropsWithChildren < SheetProps > ) {
14
14
const theme = useTheme ( ) ;
15
15
16
- const props = componentProps ;
16
+ const props = { ... componentProps } ;
17
17
18
18
const background = props . Background
19
19
? theme . backgroundPrimary
Original file line number Diff line number Diff line change @@ -6,14 +6,22 @@ import { useTheme } from 'components/ThemeProvider';
6
6
import type { PropsWithChildren } from '@rbxts/react' ;
7
7
import type { BoxProps } from 'components/Box' ;
8
8
9
- export interface TypographyProps extends BoxProps < 'textlabel' > { }
9
+ export interface TypographyProps extends BoxProps < 'textlabel' > {
10
+ Bold ?: boolean ;
11
+ }
10
12
11
- export function Typography ( props : PropsWithChildren < TypographyProps > ) {
13
+ export function Typography ( componentProps : PropsWithChildren < TypographyProps > ) {
12
14
const theme = useTheme ( ) ;
13
15
16
+ const props = { ...componentProps } ;
17
+
18
+ const bold = componentProps . Bold ?? false ;
19
+ props . Bold = undefined ;
20
+
14
21
return (
15
22
< Box
16
23
Component = "textlabel"
24
+ Font = { bold ? theme . fontBold : theme . fontRegular }
17
25
TextColor3 = { theme . textPrimary }
18
26
TextSize = { 12 }
19
27
TextXAlignment = { Enum . TextXAlignment . Left }
You can’t perform that action at this time.
0 commit comments