-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathbasic.tsx
More file actions
28 lines (23 loc) · 1.05 KB
/
basic.tsx
File metadata and controls
28 lines (23 loc) · 1.05 KB
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
import React from 'react';
import { KolLinkButton } from '@public-ui/react';
import type { FC } from 'react';
import { SampleDescription } from '../SampleDescription';
const ARGS = {
_href: '#/back-page',
};
export const LinkButtonBasic: FC = () => (
<>
<SampleDescription>
<p>KolLinkButton renders a link that looks like a button. The sample shows the different styling variants.</p>
</SampleDescription>
<div className="flex flex-wrap gap-2">
<KolLinkButton _label="Primary" _variant="primary" {...ARGS}></KolLinkButton>
<KolLinkButton _label="Secondary" _variant="secondary" {...ARGS}></KolLinkButton>
<KolLinkButton _label="Normal" _variant="normal" {...ARGS}></KolLinkButton>
<KolLinkButton _label="Danger" _variant="danger" {...ARGS}></KolLinkButton>
<KolLinkButton _label="Ghost" _variant="ghost" {...ARGS}></KolLinkButton>
<KolLinkButton _label="Access Key" _variant="primary" _accessKey="c" {...ARGS}></KolLinkButton>
<KolLinkButton _label="Short Key" _variant="primary" _shortKey="s" {...ARGS}></KolLinkButton>
</div>
</>
);