Common front-end components for Web using the Tesseract design system, written for React. https://make.modal.sh/tesseract/web/react/common
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
781 B

  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.