Variable: RSCSS_COMPONENT
ts
const RSCSS_COMPONENT: Regex<"\\.(?<component>[a-z]+-[a-z][\\w-]*)", {
flags: "u";
names: {
component: string;
};
}>;Defined in: packages/regex/src/tiers/cssdoc-local.ts:256
RSCSS Component Pattern Matches RSCSS component naming: two or more words with hyphens (lowercase). Examples: .like-button, .article-card, .search-form Pattern: .component-name with at least two hyphen-separated words Used to identify RSCSS component base classes.
Example
ts
RSCSS_COMPONENT.exec(".like-button")?.groups?.component // "like-button"
RSCSS_COMPONENT.exec(".article-card")?.groups?.component // "article-card"
RSCSS_COMPONENT.exec(".search-form")?.groups?.component // "search-form"