* add with-theme hoc * add dark theme styles for components * add toggle theme button to the dev demo page * add info about widget themes to README
9 lines
227 B
React
9 lines
227 B
React
/** @jsx h */
|
|
import { h } from 'preact';
|
|
|
|
export default function DropdownItem(props) {
|
|
const { children, separator = false } = props;
|
|
|
|
return <div className={b('dropdown__item', props, { separator })}>{children}</div>;
|
|
}
|