button.docs.mdx 390 B

12345678910111213141516171819202122
  1. ---
  2. description: 'A Button component.'
  3. labels: ['label1', 'label2', 'label3']
  4. ---
  5. import { Button } from './button';
  6. ## React Component for rendering text
  7. A basic div that renders some text
  8. ### Component usage
  9. ```js
  10. <Button text="hello from Button" />
  11. ```
  12. ### Using props to customize the text
  13. Modify the text to see it change live:
  14. ```js live
  15. <Button text="hello from Button" />
  16. ```