mirror of
https://github.com/koreanbots/core.git
synced 2025-12-17 06:40:24 +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 (
|
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}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
interface SegmentProps {
|
interface SegmentProps {
|
||||||
|
className?: string
|
||||||
children: JSX.Element | JSX.Element[]
|
children: JSX.Element | JSX.Element[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user