{"slug":"article","name":"Article","category":"Layout & Navigation","summary":"A readable page body with an optional title and standfirst.","status":"stable","since":"0.2.0","import":"import { Article } from '@elluzion/iv-ui';","usage":["Body content is wrapped in `iv-prose`, so plain HTML inherits the typeset.","`title` and `description` render a centered header with a hairline rule.","`maxWidth` narrows the body measure; the default is 880px."],"props":[{"name":"title","type":"string","default":"''","description":"Article heading.","required":false,"bindable":false},{"name":"description","type":"string","default":"''","description":"Standfirst shown below the heading.","required":false,"bindable":false},{"name":"maxWidth","type":"number","default":"880","description":"Maximum measure in pixels.","required":false,"bindable":false},{"name":"className","type":"string","default":"''","description":"Extra classes merged onto the root element.","required":false,"bindable":false}],"events":[],"snippets":[{"name":"children","type":"Snippet","default":null,"description":"Content rendered inside the component.","required":true,"bindable":false}],"types":[],"manual":[],"tokens":["--iv_article-width","--iv_border","--iv_font-sans","--iv_foreground","--iv_foreground-dim","--iv_leading-heading","--iv_leading-prose","--iv_spacing-2xl","--iv_spacing-sm","--iv_text-label","--iv_text-xl","--iv_tracking-tight","--iv_weight-bold"],"cssHooks":["iv-article","iv-body","iv-description","iv-header","iv-title"],"accessibility":{"notes":["The component renders a semantic `<article>` element.","Keep heading levels in order inside the body; `title` renders an `h1`.","Links and code inside the body keep the prose focus and contrast treatment."]},"related":[{"title":"Card","summary":"A bordered surface for grouped content and actions.","url":"/components/card","kind":"Component"},{"title":"Tabs","summary":"Switches between panels that share one context.","url":"/components/tabs","kind":"Component"},{"title":"Accordion","summary":"A stack of collapsible sections; one or several can be open.","url":"/components/accordion","kind":"Component"},{"title":"Separator","summary":"A hairline rule that separates content.","url":"/components/separator","kind":"Component"}],"examples":[{"id":"prose","title":"Prose","description":"Headings, paragraphs, lists, and code receive the typeset automatically.","code":"<script lang=\"ts\">\n\timport { Article } from '@elluzion/iv-ui';\n</script>\n\n<Article title=\"Release notes\" description=\"What changed in the console this week.\">\n\t<p>\n\t\tThe focus ring now follows the keyboard on every overlay. Dialogs open with a short scale, and\n\t\tthe entry animation is skipped when reduced motion is requested.\n\t</p>\n\t<h2>Fixes</h2>\n\t<ul>\n\t\t<li>Select keeps the active option visible while filtering.</li>\n\t\t<li>Toast timers no longer close a newer message.</li>\n\t</ul>\n\t<pre><code>showToast('Deployed to production', 'success');</code></pre>\n</Article>"},{"id":"max-width","title":"Measure","description":"`maxWidth` tightens the reading column without touching the header.","code":"<script lang=\"ts\">\n\timport { Article } from '@elluzion/iv-ui';\n</script>\n\n<Article\n\ttitle=\"A narrow measure\"\n\tdescription=\"520px keeps the line length comfortable.\"\n\tmaxWidth={520}\n>\n\t<p>\n\t\tThe body column is narrowed independently of the header. Use it for release notes,\n\t\tdocumentation, or any surface that is mostly prose. Headings, lists, and code keep the same\n\t\ttypeset.\n\t</p>\n\t<p>Short lines are easier to scan; long lines lose the reader between returns.</p>\n</Article>"}],"markdown":"/components/article.md","page":"/components/article"}