ADDED: Icon wrapper for more elegant way to placement icon in buttons

TODO: Add styles for selected segmented button
DONE: Base styles for segmented buttons
This commit is contained in:
2024-02-09 23:25:46 +04:00
committed by doryan
parent dbb19057ac
commit ff00e19aeb
4 changed files with 20 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ export const SegmentButton = forwardRef<
ref={ref}
>
<IconWrapper icon={icon} iconPlace={iconPlace}>
{props.children}
<span className={'label-large'}>{props.children}</span>
</IconWrapper>
<span className={'m3 m3-button-segment-state-layer'} />
</ButtonLayout>