Common front-end components for Web using the Tesseract design system, written for React. https://make.modal.sh/tesseract/web/react/common
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

RadioButton.mdx 745 B

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. name: RadioButton
  3. route: /components/radiobutton
  4. menu: Components
  5. ---
  6. import { Playground, Props, Link } from 'docz'
  7. import RadioButton from './RadioButton'
  8. # RadioButton
  9. Component for values which are to be selected from a few list of options.
  10. <Playground>
  11. <div style={{ display: 'grid', gap: '1rem', }}>
  12. <div>
  13. <RadioButton name="flavor" label="Chocolate" />
  14. </div>
  15. <div>
  16. <RadioButton name="flavor" label="Vanilla" />
  17. </div>
  18. </div>
  19. </Playground>
  20. ## Props
  21. <Props of={RadioButton} />
  22. ## See Also
  23. - <Link to="../checkbox">Checkbox</Link> for a similar component on selecting values among very few choices.
  24. - <Link to="../select">Select</Link> for a similar component suitable for selecting more values.