File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed
Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ import { StoryFn } from '@storybook/react-webpack5' ;
2+ import React from 'react' ;
3+
4+ import { Segmented , SegmentedProps } from './index' ;
5+
6+ export default {
7+ title : 'Segmented' ,
8+ component : Segmented ,
9+ } ;
10+
11+ export const Default : StoryFn < SegmentedProps > = function Default ( args ) {
12+ return (
13+ < Segmented options = { [ 'Segment A' , 'Segment B' , 'Segment C' ] } { ...args } />
14+ ) ;
15+ } ;
Original file line number Diff line number Diff line change 1+ import {
2+ Segmented as AntdSegmented ,
3+ SegmentedProps as AntdSegmentedProps ,
4+ } from 'antd' ;
5+ import {
6+ SegmentedValue as AntdSegmentedValue ,
7+ SegmentedLabeledOption as AntdSegmentedLabeledOption ,
8+ } from 'antd/es/segmented' ;
9+
10+ export type SegmentedValue = AntdSegmentedValue ;
11+ export type SegmentedLabeledOption = AntdSegmentedLabeledOption ;
12+
13+ export type SegmentedProps = AntdSegmentedProps ;
14+ export const Segmented = AntdSegmented ;
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ export * from './Progress';
4343export * from './Radio' ;
4444export * from './RangeWithValue' ;
4545export * from './Result' ;
46+ export * from './Segmented' ;
4647export * from './Select' ;
4748export * from './Skeleton' ;
4849export * from './Slider' ;
You can’t perform that action at this time.
0 commit comments