From c5856bbcb8a5c7b3b9f46c448e56a3ba119f7188 Mon Sep 17 00:00:00 2001 From: Mahf Date: Wed, 6 Feb 2019 13:10:48 +0000 Subject: [PATCH] Revert "Revert "Merge pull request #1 from 30-seconds/master"" This reverts commit 2f79031e0e5abbd13dd7898b617cf726149f7b03. --- .gitignore | 1 + README.md | 1174 +++++++++++++++++++++++++++++++++- data/snippet_data.json | 302 +++++++++ package-lock.json | 521 +++++++++++++++ package.json | 30 + scripts/build.js | 104 +++ scripts/extract.js | 59 ++ scripts/util.js | 95 +++ snippets/Collapse.md | 2 +- snippets/FileDrop.md | 117 ++++ snippets/LimitedTextarea.md | 4 +- snippets/Mailto.md | 2 +- snippets/Ticker.md | 4 + static-parts/README-end.md | 5 + static-parts/README-start.md | 13 + 15 files changed, 2428 insertions(+), 5 deletions(-) create mode 100644 .gitignore create mode 100644 data/snippet_data.json create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 scripts/build.js create mode 100644 scripts/extract.js create mode 100644 scripts/util.js create mode 100644 snippets/FileDrop.md create mode 100644 static-parts/README-end.md create mode 100644 static-parts/README-start.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..b512c09d4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/README.md b/README.md index 6dc107662..e307f7443 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,1176 @@ > Curated collection of useful React snippets that you can understand in 30 seconds or less. -**This repository is a work in progress. If you want to contribute, please check the open issues to see where and how you can help out!** +#### Related projects + +* [30 Seconds of Code](https://30secondsofcode.org) +* [30 Seconds of CSS](https://30-seconds.github.io/30-seconds-of-css/) +* [30 Seconds of Interviews](https://30secondsofinterviews.org/) + +## Table of Contents + + +### Array + +
+View contents + +* [DataList](#datalist) +* [DataTable](#datatable) +* [MappedTable](#mappedtable) +
+ + +### Input + +
+View contents + +* [Input](#input) +* [LimitedTextarea](#limitedtextarea) +* [PasswordRevealer](#passwordrevealer) +* [Select](#select) +* [TextArea](#textarea) +
+ + +### String + +
+View contents + +* [AutoLink](#autolink) +
+ + +### Visual + +
+View contents + +* [Carousel](#carousel) +* [Collapse](#collapse) +* [Mailto](#mailto) +* [ModalDialog](#modaldialog) +* [StarRating](#starrating) +* [Tab](#tab) +* [Ticker](#ticker) +* [Toggle](#toggle) +* [Tooltip](#tooltip) +
+ + +--- + +## Array +### DataList + +Renders a list of elements from an array of primitives. + +Use the value of the `isOrdered` prop to conditionally render a `
    ` or `