mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 22:30:23 +00:00
chore: added className prop at Segment
This commit is contained in:
parent
0a3c0e7838
commit
5bd2c7622e
@ -1,12 +1,13 @@
|
||||
const Segment = ({ children }:SegmentProps): JSX.Element => {
|
||||
const Segment = ({ children, className='' }:SegmentProps): JSX.Element => {
|
||||
return (
|
||||
<div className='py-3 px-7 text-black dark:text-white dark:bg-discord-black bg-little-white rounded-sm'>
|
||||
<div className={`py-3 px-7 text-black dark:text-white dark:bg-discord-black bg-little-white rounded-sm ${className}`}>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
interface SegmentProps {
|
||||
className?: string
|
||||
children: JSX.Element | JSX.Element[]
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user