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:
26
app/page.tsx
26
app/page.tsx
@@ -5,13 +5,11 @@ import { CardBody } from '../src/primitive-components/card/card-body';
|
||||
import { CardMedia } from '../src/primitive-components/card/card-media';
|
||||
import { CardFooter } from '../src/primitive-components/card/card-footer';
|
||||
import { CardHeader } from '../src/primitive-components/card/card-header';
|
||||
import { SegmentedButtons } from '../src/primitive-components/components';
|
||||
import { Typography } from '../src/primitive-components/typography/typography';
|
||||
import { CardActionArea } from '../src/primitive-components/card/card-action-area';
|
||||
import { Button } from '../src/primitive-components/button-components/button/button';
|
||||
import { Typography } from '../src/primitive-components/typography/typography';
|
||||
import {
|
||||
ButtonLayout,
|
||||
SegmentedButtons,
|
||||
} from '../src/primitive-components/components';
|
||||
import { SegmentButton } from '../src/primitive-components/button-components/segmented-buttons/segmented-buttons';
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
@@ -50,11 +48,21 @@ export default function Page() {
|
||||
</CardActionArea>
|
||||
<CardFooter>
|
||||
<div className={'flex flex-row gap-3'}>
|
||||
<Button>label</Button>
|
||||
<Button icon={'add'}>Label 1</Button>
|
||||
<Button icon={'add'} iconPlace={'right'}>
|
||||
Label 2
|
||||
</Button>
|
||||
<SegmentedButtons>
|
||||
<ButtonLayout>Label 1</ButtonLayout>
|
||||
<ButtonLayout>Label 2</ButtonLayout>
|
||||
<ButtonLayout>Label 3</ButtonLayout>
|
||||
<SegmentButton icon={'add'}>
|
||||
Label 1
|
||||
</SegmentButton>
|
||||
<SegmentButton
|
||||
icon={'add'}
|
||||
iconPlace={'right'}
|
||||
>
|
||||
Label 2
|
||||
</SegmentButton>
|
||||
<SegmentButton>Label 3</SegmentButton>
|
||||
</SegmentedButtons>
|
||||
</div>
|
||||
</CardFooter>
|
||||
|
||||
Reference in New Issue
Block a user