🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@pongo-ui/react-radio

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pongo-ui/react-radio

A radio button component that allows a user to select a single option from a set.

0.0.10
latest
Source
npm
Version published
Maintainers
2
Created
Source

RadioButton

The RadioButton component allows a user to select a single option from a set.

Use

  • Install the @pongo-ui/react-radio component.

Using NPM

npm install @pongo-ui/react-radio

Using Yarn

yarn add @pongo-ui/react-radio
  • Install the @pongo-ui/react-provider and our theme tokens from @pongo-ui/react-theme

  • Set up the provider in your app:

import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
    <Provider>
  )
}
  • Integrate the Radio component.
import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'
import { RadioRadioGroupList, Radio } from '@pongo-ui/react-radio'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
      <RadioGroup>
        <Radio value="1" label="Value 1" />
        <Radio value="2" label="Value 2" />
        <Radio value="3" label="Value 3" />
      </RadioGroup>
    <Provider>
  )
}

API

The Radio API extends off of FluentUI.

FAQs

Package last updated on 28 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts