Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mike-schultz/feature-list
https://github.com/mike-schultz/feature-list
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mike-schultz/feature-list
- Owner: mike-schultz
- Created: 2019-11-22T21:57:50.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-07T08:49:04.000Z (over 1 year ago)
- Last Synced: 2024-11-07T09:53:11.291Z (2 months ago)
- Language: CSS
- Size: 1.12 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Feature List
This repository contains a FeatureList component the allows you to generate an expandable recursive list of features.
## Usage
The FeatureList only takes a single `items` property, which is an array of "Feature" objects.```jsx
import FeatureList from 'feature-list-component';
const features = [
{
"title": "Toilet",
"presence": true,
"subfeatures": []
},
{
"title": "Shower",
"presence": false,
"subfeatures": [
{
"title": "Outdoor shower",
"presence": false,
"subfeatures": []
}
]
},
];const element =
```## Example
This repository contains a `create-react-app` boilerplate and can be run once installing dependencies `npm install`, and running the example with `npm run start`.