1.0.0 • Published 3 years ago

gender-options v1.0.0

Weekly downloads
45
License
MIT
Repository
github
Last release
3 years ago

Gender-options

A lightweight package to provide easy lists of gender options for use in web forms.

NPM Version Build Status MIT License

Installation

To install via npm:

npm install --save gender-options

Usage

const { genderOptions } = require('gender-options');

or

import { genderOptions } from 'gender-options';

Data structure

genderOptions is an object with three properties:

  • genderOptions.basic - a minimal list of gender identities for the most basic of forms (e.g. radio buttons)
  • genderOptions.standard - a wide list of gender identities to allow for an (almost) fully-inclusive form without all possible options (e.g. select box)
  • genderOptions.extended - complete list of gender identities where length is no issue (e.g. typeahead)

The three lists are arrays of objects with label and value properties sorted alphabetically:

// EXAMPLE LIST
[
	{
		label: 'Female',
		value: 'male',
	},
	{
		label: 'Non-binary',
		value: 'nonbinary'
	},
	...
]

Contributing and completeness

This project is currently incomplete, so please suggest new gender identities to add to the lists.

1.0.0

3 years ago

1.0.0-5

6 years ago

1.0.0-4

6 years ago

1.0.0-3

6 years ago

1.0.0-2

6 years ago

1.0.0-1

6 years ago