Design system.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

62 řádky
1.9 KiB

  1. import {NextPage} from 'next';
  2. import {DefaultLayout} from '@/components/DefaultLayout';
  3. import {Section, Subsection} from '@/components/Section';
  4. import * as TesseractBlob from '@tesseract-design/web-blob-react';
  5. const BlobPage: NextPage = () => {
  6. return (
  7. <DefaultLayout title="Blob">
  8. <Section title="FileSelectBox">
  9. <Subsection title="Default">
  10. <TesseractBlob.FileSelectBox
  11. label="File"
  12. name="file"
  13. border
  14. placeholder="Select a file"
  15. onChange={(e) => { console.log('change', e.currentTarget.name, e.currentTarget, e.currentTarget.files)}}
  16. />
  17. </Subsection>
  18. <Subsection title="Default Multiple">
  19. <TesseractBlob.FileSelectBox
  20. label="File"
  21. name="file"
  22. border
  23. multiple
  24. placeholder="Select a file"
  25. onChange={(e) => { console.log('change', e.currentTarget.name, e.currentTarget, e.currentTarget.files)}}
  26. />
  27. </Subsection>
  28. <Subsection title="Enhanced">
  29. <TesseractBlob.FileSelectBox
  30. label="File"
  31. name="file"
  32. border
  33. enhanced
  34. placeholder="Select a file"
  35. style={{
  36. height: 256,
  37. }}
  38. onChange={(e) => { console.log('change', e.currentTarget.name, e.currentTarget, e.currentTarget.files)}}
  39. />
  40. </Subsection>
  41. <Subsection title="Enhanced Multiple">
  42. <TesseractBlob.FileSelectBox
  43. label="File"
  44. name="file"
  45. border
  46. enhanced
  47. placeholder="Select a file"
  48. multiple
  49. style={{
  50. height: 256,
  51. }}
  52. onChange={(e) => { console.log('change', e.currentTarget.name, e.currentTarget, e.currentTarget.files)}}
  53. />
  54. </Subsection>
  55. </Section>
  56. </DefaultLayout>
  57. )
  58. }
  59. export default BlobPage;