forked from themesberg/flowbite-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(/lib/components/*): add
theme={}
attribute to components that …
…need it See notes in themesberg#566
- Loading branch information
1 parent
85316cb
commit 9db5fe6
Showing
42 changed files
with
639 additions
and
393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
import type { FC } from 'react'; | ||
import classNames from 'classnames'; | ||
import type { ComponentProps, FC } from 'react'; | ||
import { useTheme } from '../Flowbite/ThemeContext'; | ||
|
||
export const DropdownDivider: FC = () => { | ||
export interface FlowbiteDropdownDividerTheme { | ||
divider: string; | ||
} | ||
|
||
export const DropdownDivider: FC<ComponentProps<'div'>> = ({ className, ...props }) => { | ||
const theme = useTheme().theme.dropdown.floating.divider; | ||
|
||
return <div className={theme} />; | ||
return <div className={classNames(theme, className)} {...props} />; | ||
}; |
Oops, something went wrong.