Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 8236aeb

Browse files
author
Mike England
committed
Setup Select Input with styles object
1 parent 0d63ed9 commit 8236aeb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/atoms/Inputs/Select/Select.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import {Field, ErrorMessage} from 'formik'
22
import PropTypes from 'prop-types'
3+
import cn from 'classnames'
4+
import styles from './Select.module.css'
35

46
/**
57
* Render the Select component.
@@ -23,7 +25,7 @@ export default function Select({
2325
options
2426
}) {
2527
return (
26-
<div className={className}>
28+
<div className={cn(styles.select, className)}>
2729
{label && <label>{label}</label>}
2830
<Field as="select" id={id} name={id} required={isRequired}>
2931
{!!options?.length > 0 &&

0 commit comments

Comments
 (0)