Common front-end components for Web using the Tesseract design system, written for React. https://make.modal.sh/tesseract/web/react/common
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

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.