mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
24 lines
606 B
TypeScript
24 lines
606 B
TypeScript
import React from 'react';
|
|
|
|
import RadioButtonGroup from '../RadioButtonGroup';
|
|
|
|
type Test = 'v1' | 'v2' | 'v3';
|
|
|
|
const RadioButtonGroupTest = () => {
|
|
return (
|
|
<RadioButtonGroup<Test>
|
|
// eslint-disable-next-line react/jsx-no-bind
|
|
onChange={ () => {} }
|
|
defaultValue="v1"
|
|
name="test"
|
|
options={ [
|
|
{ value: 'v1', title: 'test option 1', icon: 'clock', onlyIcon: false },
|
|
{ value: 'v2', title: 'test 2', onlyIcon: false },
|
|
{ value: 'v2', title: 'test 2', icon: 'clock', onlyIcon: true },
|
|
] }
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default RadioButtonGroupTest;
|