Twitter Embed

Integrate Twitter content seamlessly with Bramble UI's Twitter embed component. Enhance your web design with modern social media integrations.

Single Tweet

Use dynamic lazy loading.

import dynamic from 'next/dynamic'

import { Spinner } from '@/ui'

const TwitterEmbed = dynamic(() => import('@/components/ui/twitterembed/TwitterEmbed'), {
	ssr: false,
	loading: () => <Spinner className='aspect-square w-11 text-info' />,
})
                
<TwitterEmbed
    handle='nextjs'
    status='1672021371919175682'
/>

Output

Options

OptionValuesDefaultNotes
themedark, lightlightDisplay light text on a dark background
lang
enEnglish
arArabic
bnBengali
zh-cnChinese (Simplified)
zh-twChinese (Traditional)
csCzech
daDanish
nlDutch
filFilipino
fiFinnish
frFrench
deGerman
elGreek
heHebrew
hiHindi
huHungarian
idIndonesian
itItalian
jaJapanese
koKorean
msaMalay
noNorwegian
faPersian
plPolish
ptPortuguese
roRomanian
ruRussian
esSpanish
svSwedish
thThai
trTurkish
ukUkrainian
urUrdu
viVietnamese
English

Arabic Example (RTL)

<TwitterEmbed
    handle='PLinArabic'
    status='1680161970698215424'
    lang='ar'
/>

Dark Theme

<TwitterEmbed
    handle='adamwathan'
	status='1676979739444011012'
    theme='dark'
/>

Timeline

View latest 10 tweets.

<TwitterEmbed
    handle='elonmusk'
	height={400}
/>

Timeline Options

OptionValuesDefaultNotes
chromenoheader, nofooter, noborders, transparent, noscrollbarundefinedToggle the display of design elements in the widget. This parameter is a space-separated list of values
themedarklightDisplay light text on a dark background
heightnumber (px)undefinedHeight will display scrollbar