All Downloads are FREE. Search and download functionalities are using the official Maven repository.

components.actions.Dropdowns.Dropdown.tsx Maven / Gradle / Ivy

There is a newer version: 7.28.2
Show newest version
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