components.actions.Dropdowns.Dropdown.tsx Maven / Gradle / Ivy
import React, { useState } from 'react'
import { ButtonDropdown, DropdownToggle, DropdownMenu } from 'reactstrap'
interface DropdownProps {
id: string;
children: React.ReactNode;
color: string;
title: string;
size?: string;
disabled?: boolean;
}
const Dropdown: React.FC = ({
id,
children,
color,
title,
size,
disabled = false,
}) => {
const [dropdownOpen, setDropdownOpen] = useState(false)
const toggle = () => { setDropdownOpen(!dropdownOpen) }
return (
{title}
{children}
)
}
export default Dropdown
© 2015 - 2025 Weber Informatics LLC | Privacy Policy