@kokoro-ui/radio
v0.0.1
Published
Kokoro UI radio package
Downloads
2
Maintainers
Readme
@kokoro-ui/radio
npm
npm i @kokoro-ui/radio
pnpm
pnpm add @kokoro-ui/radio
yarn
yarn add @kokoro-ui/radio
Usage
Typescript
import { RadioGroup } from "@kokoro-ui/radio";
const app = () => {
return (
<RadioGroup
description="JavaScript was invented by Brendan Eich in..."
devaultValue="1995"
items={[
{
label: '1997',
value: '1997'
},
{
label: '1995',
value: '1995'
},
{
label: '1999',
value: '1999'
}
]}
label="When JavaScript was invented"
onValueChange={() => {}}
orientation="vertical"
/>
)
};
export default app;
Javascript
const { RadioGroup } = require("@kokoro-ui/radio");
const app = () => {
return (
<RadioGroup
description="JavaScript was invented by Brendan Eich in..."
devaultValue="1995"
items={[
{
label: '1997',
value: '1997'
},
{
label: '1995',
value: '1995'
},
{
label: '1999',
value: '1999'
}
]}
label="When JavaScript was invented"
onValueChange={() => {}}
orientation="vertical"
/>
)
};
export default app;