UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

29 lines (21 loc) 826 B
--- id: Brand section: components cssPrefix: null propComponents: ['Brand'] --- import pfLogo from '../../assets/pfLogo.svg'; import logoXl from '../../assets/pf-c-brand--logo-on-xl.svg'; import logoLg from '../../assets/pf-c-brand--logo-on-lg.svg'; import logoMd from '../../assets/pf-c-brand--logo-on-md.svg'; import logoSm from '../../assets/pf-c-brand--logo-on-sm.svg'; import logo from '../../assets/pf-c-brand--logo.svg'; import logoBase from '../../assets/pf-c-brand--logo-base.jpg'; ## Examples ### Basic ```ts file="./BrandBasic.tsx" ``` ### Responsive Passing `<source>` elements as children to `Brand` will change the component from an `<img>` to a `<picture>` element. The `src` and `alt` properties should still be passed to populate the fallback `img` of the brand. ```ts file="./BrandResponsive.tsx" ```