From b4126984033374826094db7c21da2b16090918e9 Mon Sep 17 00:00:00 2001 From: Aleix Soler Date: Sat, 19 Jul 2025 13:36:20 +0200 Subject: [PATCH] feat: add simple select component --- components/atoms/Select.tsx | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 components/atoms/Select.tsx diff --git a/components/atoms/Select.tsx b/components/atoms/Select.tsx new file mode 100644 index 0000000..2c8d02e --- /dev/null +++ b/components/atoms/Select.tsx @@ -0,0 +1,26 @@ +import React, { ReactNode } from "react"; + +type SelectProps = { + options: { value: string | number; display: ReactNode }[]; + onChange: (value: string) => void; + defaultValue?: string; +}; + +export const Select: React.FC = ({ + options, + onChange, + defaultValue, +}) => { + return ( + + ); +};