twitter-profile
A profile with a banner, bio, and follower counts.
Assign a TwitterProfile object to .data. Assign display settings to .options. Reassign the object to update the component.
import 'twitter-components/register'const element = document.querySelector('twitter-profile')element.data = dataelement.options = { theme: 'dark', countFormat: 'full' }Example
Section titled “Example”import { renderTwitterProfile } from 'twitter-components/server'
const html = renderTwitterProfile({ author: 'John Doe', handle: 'john_doe', avatar: '/avatar.svg', bio: 'im john doe and im real', url: 'https://z1x.us', website: { url: 'https://z1x.us', label: 'z1x.us' }, following: 42, followers: '1.2K', joined: 'September 2026'})Use the default slot for posts below the profile. The actions slot is empty until you supply controls.
banneravataractionsbiodetailsstatsdefault
CSS parts
Section titled “CSS parts”profilebanneravataridentitybiodetailsstats
See settings for the shared options and composition for slots and events. Each component uses only the settings that apply to it.