-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathBasic.tsx
More file actions
33 lines (32 loc) · 887 Bytes
/
Copy pathBasic.tsx
File metadata and controls
33 lines (32 loc) · 887 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
31
32
33
import React from 'react';
import { Segmented } from '@tiny-design/react';
export default function BasicDemo() {
return (
<div style={{ display: 'flex', flexDirection: 'column', gap: '16px' }}>
<Segmented
options={[
{ label: 'Daily', value: 'daily' },
{ label: 'Weekly', value: 'weekly' },
{ label: 'Monthly', value: 'monthly' },
{ label: 'Yearly', value: 'yearly' },
]}
/>
<Segmented
options={[
{ label: 'Small', value: 'sm' },
{ label: 'Medium', value: 'md' },
{ label: 'Large', value: 'lg' },
]}
size="sm"
/>
<Segmented
options={[
{ label: 'Map', value: 'map' },
{ label: 'Transit', value: 'transit' },
{ label: 'Satellite', value: 'satellite' },
]}
block
/>
</div>
);
}