-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathbaselined.tsx
More file actions
30 lines (24 loc) · 1019 Bytes
/
baselined.tsx
File metadata and controls
30 lines (24 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import React from 'react';
import { KolButton } from '@public-ui/react';
import type { FC } from 'react';
import { SampleDescription } from '../SampleDescription';
import { useToasterService } from '../../hooks/useToasterService';
export const ButtonBaselined: FC = () => {
const { dummyClickEventHandler } = useToasterService();
const dummyEventHandler = {
onClick: dummyClickEventHandler,
};
return (
<>
<SampleDescription>
<p>This KolButton sample is used for internal testing purposes: It features multiple buttons with and without icons which are vertically aligned.</p>
</SampleDescription>
<div className="flex flex-wrap gap-2">
<KolButton _label="Label-Text" _on={dummyEventHandler}></KolButton>
<KolButton _label="Label-Text" _on={dummyEventHandler}></KolButton>
<KolButton _label="Label-Text" _on={dummyEventHandler}></KolButton>
<KolButton _icons="codicon codicon-reactions" _label="Label-Text with Icon" _on={dummyEventHandler}></KolButton>
</div>
</>
);
};