import classnames from 'classnames' import React from 'react' export interface ExpanderProps extends React.PropsWithChildren { /** The initial state of the expander */ state?: 'expanded' | 'collapsed' /** The label for the Expand CTA */ expandLabel?: string /** The label for the collapse CTA */ collapseLabel?: string /** Show the expander only on mobile resolutions */ onlyMobile?: boolean /** Id of the component */ id: string } // React functional component with children export const ExpanderServer: React.FC = ({ state = 'collapsed', // default value for "state children, id, expandLabel = 'Expand', collapseLabel = 'Collapse', onlyMobile = false, }) => { return (
) } export default ExpanderServer