Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import { RadioControl } from '@wordpress/components';
import { useState } from 'react';
const options = [
{ label: 'Public', value: 'public' },
{ label: 'Private', value: 'private' },
{ label: 'Password Protected', value: 'password' },
];
const RadioExample = () => {
const [ option, setOption ] = useState( 'public' );
return (
<RadioControl
label="Post visibility"
help="Help text for this radio control"
options={ options }
selected={ option }
onChange={ setOption }
/>
);
};
export default RadioExample;