Common front-end components for Web using the Tesseract design system, written for React. https://make.modal.sh/tesseract/web/react/common
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

RadioButton.mdx 781 B

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